import "github.com/byte-mug/fastnntp-backend2/remote/mntp"MNTP: Minimalistic News Transfer Protocol. MNTP is a wire protocol that is kind of a sibling to NNTP. It is meant to offer an efficient means of communication between the Frontend server and the backend.
func ConsumeRelease(r *fastnntp.DotReader)
-
func ServeConn(conn io.ReadWriteCloser, rh fastnntp.Handler)
-
type Client struct {
// contains filtered or unexported fields
}
-
func NewClient(conn io.ReadWriteCloser) (c *Client)
-
func (c *Client) CheckPost() (possible bool)
-
func (c *Client) CheckPostId(id []byte) (wanted bool, possible bool)
-
func (c *Client) GetArticle(a *fastnntp.Article, head, body bool) func(w *fastnntp.DotWriter)
-
func (c *Client) GetArticleInto(a *fastnntp.Article, head, body bool, targ io.Writer) bool
-
func (c *Client) PerformPost(id []byte, r *fastnntp.DotReader) (rejected bool, failed bool)
-
func (c *Client) StatArticle(a *fastnntp.Article) bool
-
func (c *Client) WriteOverview(ar *fastnntp.ArticleRange) func(w fastnntp.IOverview)
-
func (c *Client) WriteOverviewInto(a *fastnntp.ArticleRange, w fastnntp.IOverview)
-
import "bytes"import "fmt"import "github.com/byte-mug/fastnntp"import "io"import "net/textproto"import "sync"