mntpc

package
v0.0.0-...-7e6ab84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeRelease

func ConsumeRelease(r *fastnntp.DotReader)

func ServeConn

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

Types

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) CursorMoveGroup

func (c *Client) CursorMoveGroup(g *fastnntp.Group, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok 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) GetGroup

func (c *Client) GetGroup(g *fastnntp.Group) bool

func (*Client) ListGroup

func (c *Client) ListGroup(g *fastnntp.Group, w *fastnntp.DotWriter, first, last int64)

func (*Client) ListGroups

func (c *Client) ListGroups(wm *fastnntp.WildMat, ila fastnntp.IListActive) (ok 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL