fnntpbackend

package module
v0.0.0-...-ba07b32 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MIT Imports: 5 Imported by: 0

README

fastnntp-backend

Fast NNTP server Backend (Nothing to see here)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Articledb

type Articledb struct {
	DB *bolt.DB
}

func (*Articledb) AdmAddGroup

func (a *Articledb) AdmAddGroup(group, descr []byte) error

func (*Articledb) AdmGroupChangeState

func (a *Articledb) AdmGroupChangeState(group []byte, state byte) error

func (*Articledb) CheckPost

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

func (*Articledb) CheckPostId

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

func (*Articledb) CursorMoveGroup

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

func (*Articledb) GetArticle

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

func (*Articledb) GetGroup

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

func (*Articledb) Initialize

func (a *Articledb) Initialize()

func (*Articledb) ListGroup

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

func (*Articledb) ListGroups

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

func (*Articledb) PerformPost

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

func (*Articledb) StatArticle

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

func (*Articledb) WriteOverview

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

Directories

Path Synopsis
DEPRECATED, use "github.com/byte-mug/fastnntp/posting" instead.
DEPRECATED, use "github.com/byte-mug/fastnntp/posting" instead.

Jump to

Keyboard shortcuts

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