caps

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: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedupe

func Dedupe(names [][]byte) [][]byte

Types

type Caps

type Caps struct {
	Stamper          posting.Stamper
	GroupHeadDB      newspolyglot.GroupHeadDB
	GroupHeadCache   newspolyglot.GroupHeadCache
	ArticlePostingDB newspolyglot.ArticlePostingDB
	ArticleDirectDB  newspolyglot.ArticleDirectDB
	ArticleGroupDB   newspolyglot.ArticleGroupDB
	GroupRealtimeDB  newspolyglot.GroupRealtimeDB
	GroupStaticDB    newspolyglot.GroupStaticDB
}

func (*Caps) CheckPost

func (a *Caps) CheckPost() (possible bool)

func (*Caps) CheckPostId

func (a *Caps) CheckPostId(id []byte) (wanted bool, possible bool)

func (*Caps) CursorMoveGroup

func (a *Caps) CursorMoveGroup(g *fastnntp.Group, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)

func (*Caps) GetArticle

func (a *Caps) GetArticle(ar *fastnntp.Article, head, body bool) func(w *fastnntp.DotWriter)

func (*Caps) GetGroup

func (a *Caps) GetGroup(g *fastnntp.Group) bool

func (*Caps) ListGroup

func (a *Caps) ListGroup(g *fastnntp.Group, w *fastnntp.DotWriter, first, last int64)

func (*Caps) ListGroups

func (a *Caps) ListGroups(wm *fastnntp.WildMat, ila fastnntp.IListActive) bool

func (*Caps) PerformPost

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

func (*Caps) StatArticle

func (a *Caps) StatArticle(ar *fastnntp.Article) bool

func (*Caps) WriteOverview

func (a *Caps) WriteOverview(ar *fastnntp.ArticleRange) func(w fastnntp.IOverview)

Jump to

Keyboard shortcuts

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