Package mntpc

import "github.com/byte-mug/fastnntp-backend2/remote/mntp"

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

func ConsumeRelease(r *fastnntp.DotReader)

-

func ServeConn

func ServeConn(conn io.ReadWriteCloser, rh fastnntp.Handler)

-

type Client

type Client struct {
	// contains filtered or unexported fields
}

-

func NewClient

func NewClient(conn io.ReadWriteCloser) (c *Client)

-

func (*Client) CheckPost

func (c *Client) CheckPost() (possible bool)

-

func (*Client) CheckPostId

func (c *Client) CheckPostId(id []byte) (wanted bool, possible bool)

-

func (*Client) GetArticle

func (c *Client) GetArticle(a *fastnntp.Article, head, body bool) func(w *fastnntp.DotWriter)

-

func (*Client) GetArticleInto

func (c *Client) GetArticleInto(a *fastnntp.Article, head, body bool, targ io.Writer) bool

-

func (*Client) PerformPost

func (c *Client) PerformPost(id []byte, r *fastnntp.DotReader) (rejected bool, failed bool)

-

func (*Client) StatArticle

func (c *Client) StatArticle(a *fastnntp.Article) bool

-

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)

-

Dependencies