newbolt

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: 0

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) 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) (id []byte, article *newspolyglot.ArticleObject)

func (*Articledb) ArticleGroupList

func (a *Articledb) ArticleGroupList(group []byte, first, last int64, targ func(int64))

func (*Articledb) ArticleGroupMove

func (a *Articledb) ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)

func (*Articledb) ArticleGroupOverview

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

func (*Articledb) ArticleGroupStat

func (a *Articledb) ArticleGroupStat(group []byte, num int64, id_buf []byte) (id []byte, dostat bool)

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)

func (*Articledb) GroupHeadFilter

func (a *Articledb) GroupHeadFilter(groups [][]byte) ([][]byte, error)

func (*Articledb) GroupHeadInsert

func (a *Articledb) GroupHeadInsert(ngs [][]byte, buf []int64) ([]int64, error)

func (*Articledb) GroupHeadRevert

func (a *Articledb) GroupHeadRevert(ngs [][]byte, numbs []int64) error

func (*Articledb) GroupRealtimeList

func (a *Articledb) GroupRealtimeList(targ func(group []byte, high, low int64, status byte)) (ok bool)

func (*Articledb) GroupRealtimeQuery

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

func (*Articledb) GroupStaticList

func (a *Articledb) GroupStaticList(targ func(group []byte, descr []byte)) (ok bool)

func (*Articledb) Initialize

func (a *Articledb) Initialize()

Jump to

Keyboard shortcuts

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