Archived
1
0
This commit is contained in:
Jeff Becker 2017-09-12 09:28:11 -04:00
parent 2e1b934705
commit 3b0a58d24c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
13 changed files with 22 additions and 21 deletions

View File

@ -2,13 +2,13 @@ package main
import ( import (
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"net"
"net/http"
_ "net/http/pprof"
"nntpchan/lib/config" "nntpchan/lib/config"
"nntpchan/lib/nntp" "nntpchan/lib/nntp"
"nntpchan/lib/store" "nntpchan/lib/store"
"nntpchan/lib/webhooks" "nntpchan/lib/webhooks"
"net"
"net/http"
_ "net/http/pprof"
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"

View File

@ -4,10 +4,10 @@ package main
import ( import (
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"net"
"nntpchan/lib/config" "nntpchan/lib/config"
"nntpchan/lib/nntp" "nntpchan/lib/nntp"
"nntpchan/lib/store" "nntpchan/lib/store"
"net"
) )
func main() { func main() {

View File

@ -3,6 +3,7 @@ package api
import ( import (
"nntpchan/lib/model" "nntpchan/lib/model"
) )
// json api // json api
type API interface { type API interface {
MakePost(p model.Post) MakePost(p model.Post)

View File

@ -2,9 +2,9 @@ package database
import ( import (
"errors" "errors"
"net"
"nntpchan/lib/config" "nntpchan/lib/config"
"nntpchan/lib/model" "nntpchan/lib/model"
"net"
"strings" "strings"
) )

View File

@ -2,8 +2,8 @@ package network
import ( import (
"errors" "errors"
"nntpchan/lib/config"
"net" "net"
"nntpchan/lib/config"
"strings" "strings"
) )

View File

@ -1,10 +1,10 @@
package nntp package nntp
import ( import (
"nntpchan/lib/crypto"
"crypto/sha1" "crypto/sha1"
"fmt" "fmt"
"io" "io"
"nntpchan/lib/crypto"
"regexp" "regexp"
"strings" "strings"
"time" "time"

View File

@ -9,16 +9,16 @@ import (
"errors" "errors"
"fmt" "fmt"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"nntpchan/lib/config"
"nntpchan/lib/database"
"nntpchan/lib/nntp/message"
"nntpchan/lib/store"
"nntpchan/lib/util"
"io" "io"
"mime" "mime"
"mime/multipart" "mime/multipart"
"net" "net"
"net/textproto" "net/textproto"
"nntpchan/lib/config"
"nntpchan/lib/database"
"nntpchan/lib/nntp/message"
"nntpchan/lib/store"
"nntpchan/lib/util"
"os" "os"
"strings" "strings"
) )

View File

@ -1,8 +1,8 @@
package nntp package nntp
import ( import (
"nntpchan/lib/nntp/message"
"io" "io"
"nntpchan/lib/nntp/message"
) )
// defines interface for filtering an nntp article // defines interface for filtering an nntp article

View File

@ -2,11 +2,11 @@ package nntp
import ( import (
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"net"
"nntpchan/lib/config" "nntpchan/lib/config"
"nntpchan/lib/database" "nntpchan/lib/database"
"nntpchan/lib/network" "nntpchan/lib/network"
"nntpchan/lib/store" "nntpchan/lib/store"
"net"
"time" "time"
) )

View File

@ -4,9 +4,9 @@ import (
"encoding/base32" "encoding/base32"
"fmt" "fmt"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"nntpchan/lib/crypto"
"io" "io"
"io/ioutil" "io/ioutil"
"nntpchan/lib/crypto"
"os" "os"
"path/filepath" "path/filepath"
"time" "time"

View File

@ -1,8 +1,8 @@
package store package store
import ( import (
"nntpchan/lib/util"
"io" "io"
"nntpchan/lib/util"
"os" "os"
) )

View File

@ -3,9 +3,9 @@ package util
import ( import (
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"nntpchan/lib/crypto/nacl"
"log" "log"
"net" "net"
"nntpchan/lib/crypto/nacl"
) )
// given an address // given an address

View File

@ -4,16 +4,16 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"nntpchan/lib/config"
"nntpchan/lib/nntp"
"nntpchan/lib/nntp/message"
"nntpchan/lib/store"
"io" "io"
"mime" "mime"
"mime/multipart" "mime/multipart"
"net/http" "net/http"
"net/textproto" "net/textproto"
"net/url" "net/url"
"nntpchan/lib/config"
"nntpchan/lib/nntp"
"nntpchan/lib/nntp/message"
"nntpchan/lib/store"
"regexp" "regexp"
"strings" "strings"
) )