mntpc

package
v0.0.0-...-5dcd16a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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) 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)

Jump to

Keyboard shortcuts

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