Documentation ¶
Overview ¶
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.
Index ¶
- func ConsumeRelease(r *fastnntp.DotReader)
- func ServeConn(conn io.ReadWriteCloser, rh fastnntp.Handler)
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeRelease ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(conn io.ReadWriteCloser) (c *Client)
func (*Client) GetArticle ¶
func (*Client) GetArticleInto ¶
func (*Client) PerformPost ¶
func (*Client) WriteOverview ¶
func (c *Client) WriteOverview(ar *fastnntp.ArticleRange) func(w fastnntp.IOverview)
func (*Client) WriteOverviewInto ¶
func (c *Client) WriteOverviewInto(a *fastnntp.ArticleRange, w fastnntp.IOverview)
Click to show internal directories.
Click to hide internal directories.