Documentation ¶
Index ¶
- func Dedupe(names [][]byte) [][]byte
- type Articledb
- type Caps
- func (a *Caps) CheckPost() (possible bool)
- func (a *Caps) CheckPostId(id []byte) (wanted bool, possible bool)
- func (a *Caps) CursorMoveGroup(g *fastnntp.Group, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)
- func (a *Caps) GetArticle(ar *fastnntp.Article, head, body bool) func(w *fastnntp.DotWriter)
- func (a *Caps) GetGroup(g *fastnntp.Group) bool
- func (a *Caps) ListGroup(g *fastnntp.Group, w *fastnntp.DotWriter, first, last int64)
- func (a *Caps) ListGroups(wm *fastnntp.WildMat, ila fastnntp.IListActive) bool
- func (a *Caps) PerformPost(id []byte, r *fastnntp.DotReader) (rejected bool, failed bool)
- func (a *Caps) StatArticle(ar *fastnntp.Article) bool
- func (a *Caps) WriteOverview(ar *fastnntp.ArticleRange) func(w fastnntp.IOverview)
- type Wrapper
- func (a *Wrapper) ArticleDirectGet(id []byte, head, body bool) *newspolyglot.ArticleObject
- func (a *Wrapper) ArticleDirectOverview(id []byte) *newspolyglot.ArticleOverview
- func (a *Wrapper) ArticleDirectStat(id []byte) bool
- func (a *Wrapper) ArticleGroupGet(group []byte, num int64, head, body bool, id_buf []byte) (id []byte, article *newspolyglot.ArticleObject)
- func (a *Wrapper) ArticleGroupList(group []byte, first, last int64, targ func(int64))
- func (a *Wrapper) ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)
- func (a *Wrapper) ArticleGroupOverview(group []byte, first, last int64, ...)
- func (a *Wrapper) ArticleGroupStat(group []byte, num int64, id_buf []byte) (id []byte, dostat bool)
- func (a *Wrapper) ArticlePostingCheckPost() (possible bool)
- func (a *Wrapper) ArticlePostingCheckPostId(id []byte) (wanted bool, possible bool)
- func (a *Wrapper) ArticlePostingPost(headp *posting.HeadInfo, body []byte, ngs [][]byte, numbs []int64) (rejected bool, failed bool, err error)
- func (a *Wrapper) GroupHeadFilter(groups [][]byte) ([][]byte, error)
- func (a *Wrapper) GroupHeadInsert(ngs [][]byte, buf []int64) ([]int64, error)
- func (a *Wrapper) GroupHeadRevert(ngs [][]byte, numbs []int64) error
- func (a *Wrapper) GroupRealtimeList(targ func(group []byte, high, low int64, status byte)) (ok bool)
- func (a *Wrapper) GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)
- func (a *Wrapper) GroupStaticList(targ func(group []byte, descr []byte)) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Articledb ¶
func (*Articledb) AdmAddGroup ¶
func (*Articledb) AdmGroupChangeState ¶
func (*Articledb) Initialize ¶
func (a *Articledb) Initialize()
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) CursorMoveGroup ¶
func (*Caps) GetArticle ¶
func (*Caps) ListGroups ¶
func (*Caps) PerformPost ¶
func (*Caps) WriteOverview ¶
func (a *Caps) WriteOverview(ar *fastnntp.ArticleRange) func(w fastnntp.IOverview)
type Wrapper ¶
type Wrapper struct {
*Articledb
}
Utility to implement third party Interfaces
func (*Wrapper) ArticleDirectGet ¶
func (*Wrapper) ArticleDirectOverview ¶
func (*Wrapper) ArticleDirectStat ¶
func (*Wrapper) ArticleGroupGet ¶
func (*Wrapper) ArticleGroupList ¶
func (*Wrapper) ArticleGroupMove ¶
func (*Wrapper) ArticleGroupOverview ¶
func (*Wrapper) ArticleGroupStat ¶
func (*Wrapper) ArticlePostingCheckPost ¶
func (*Wrapper) ArticlePostingCheckPostId ¶
func (*Wrapper) ArticlePostingPost ¶
func (*Wrapper) GroupHeadFilter ¶
func (*Wrapper) GroupHeadInsert ¶
func (*Wrapper) GroupHeadRevert ¶
func (*Wrapper) GroupRealtimeList ¶
func (*Wrapper) GroupRealtimeQuery ¶
Click to show internal directories.
Click to hide internal directories.