caps

package
v0.0.0-...-060dca9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EBufferTooLarge = fmt.Errorf("E-Buffer-Too-Large")

Functions

This section is empty.

Types

type ArticleDB

func (*ArticleDB) ArticleDirectGet

func (a *ArticleDB) ArticleDirectGet(id []byte, head, body bool) *newspolyglot.ArticleObject

func (*ArticleDB) ArticleDirectOverview

func (a *ArticleDB) ArticleDirectOverview(id []byte) *newspolyglot.ArticleOverview

func (*ArticleDB) ArticleDirectStat

func (a *ArticleDB) ArticleDirectStat(id []byte) bool

func (*ArticleDB) ArticleGroupGet

func (a *ArticleDB) ArticleGroupGet(group []byte, num int64, head, body bool, id_buf []byte) ([]byte, *newspolyglot.ArticleObject)

func (*ArticleDB) ArticleGroupOverview

func (a *ArticleDB) ArticleGroupOverview(group []byte, first, last int64, targ func(int64, *newspolyglot.ArticleOverview))

func (*ArticleDB) ArticlePostingCheckPost

func (a *ArticleDB) ArticlePostingCheckPost() (possible bool)

func (*ArticleDB) ArticlePostingCheckPostId

func (a *ArticleDB) ArticlePostingCheckPostId(id []byte) (wanted bool, possible bool)

func (*ArticleDB) ArticlePostingPost

func (a *ArticleDB) ArticlePostingPost(headp *posting.HeadInfo, body []byte, ngs [][]byte, numbs []int64) (rejected bool, failed bool, err error)

type ArticleGL

type ArticleGL interface {
	ArticleGroupList(group []byte, first, last int64, targ func(int64))
}

func NewArticleGL

func NewArticleGL(w groupidx.GroupIndex) ArticleGL

type GroupDB

type GroupDB struct {
	groupidx.GroupIndex
	groupover.GroupOverview
}

func (*GroupDB) GroupHeadFilterWithAuth

func (g *GroupDB) GroupHeadFilterWithAuth(rank postauth.AuthRank, ngs [][]byte) ([][]byte, error)

func (*GroupDB) GroupRealtimeList

func (g *GroupDB) GroupRealtimeList(targ func(group []byte, high, low int64, status byte)) bool

func (*GroupDB) GroupRealtimeQuery

func (g *GroupDB) GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)

func (*GroupDB) GroupStaticList

func (g *GroupDB) GroupStaticList(targ func(group []byte, descr []byte)) bool

Jump to

Keyboard shortcuts

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