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 (
log "github.com/Sirupsen/logrus"
"net"
"net/http"
_ "net/http/pprof"
"nntpchan/lib/config"
"nntpchan/lib/nntp"
"nntpchan/lib/store"
"nntpchan/lib/webhooks"
"net"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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