Documentation
¶
Overview ¶
Still subject to breaking changes.
Index ¶
- Variables
- func TKComparator(a, b interface{}) int
- type DB
- func (db *DB) ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)
- func (db *DB) ArticleGroupStat(group []byte, num int64, id_buf []byte) (id []byte, ok bool)
- func (db *DB) AssignArticleToGroup(group []byte, num, exp uint64, id []byte) error
- func (db *DB) AssignArticleToGroups(groups [][]byte, nums []int64, exp uint64, id []byte) error
- func (db *DB) GroupHeadInsert(groups [][]byte, buf []int64) (nums []int64, err error)
- func (db *DB) GroupHeadRevert(groups [][]byte, nums []int64) error
- func (db *DB) GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)
- func (db *DB) ListArticleGroupRaw(group []byte, first, last int64, targ func(int64, []byte))
- type GroupStats
- type ListGroupStats
- type LogDB
- type TableKey
- type TableRow
- type Tx
- func (t Tx) ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)
- func (t Tx) ArticleGroupStat(group []byte, num int64, id_buf []byte) ([]byte, bool)
- func (t Tx) AssignArticleToGroup(group []byte, num, exp uint64, id []byte) error
- func (t Tx) AssignArticleToGroups(groups [][]byte, nums []int64, exp uint64, id []byte) error
- func (t Tx) GroupHeadInsert(groups [][]byte, buf []int64) ([]int64, error)
- func (t Tx) GroupHeadRevert(groups [][]byte, nums []int64) error
- func (t Tx) GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)
- func (t Tx) ListArticleGroupRaw(group []byte, first, last int64, targ func(int64, []byte))
Constants ¶
This section is empty.
Variables ¶
View Source
var EMissingTable = errors.New("Missing Table")
View Source
var EUnimplemented = errors.New("EUnimplemented")
Functions ¶
func TKComparator ¶
func TKComparator(a, b interface{}) int
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ArticleGroupMove ¶
func (*DB) ArticleGroupStat ¶
func (*DB) AssignArticleToGroup ¶
Newly introduced.
func (*DB) AssignArticleToGroups ¶
func (*DB) GroupHeadInsert ¶
func (*DB) GroupRealtimeQuery ¶
type GroupStats ¶
type GroupStats struct {
Count, Low, High int64
}
type ListGroupStats ¶
type ListGroupStats []GroupStats
func (ListGroupStats) Cuts ¶
func (l ListGroupStats) Cuts(begin, end int64) bool
type LogDB ¶
type LogDB struct { DB // contains filtered or unexported fields }
func (*LogDB) AssignArticleToGroup ¶
func (*LogDB) AssignArticleToGroups ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (Tx) ArticleGroupMove ¶
func (Tx) ArticleGroupStat ¶
func (Tx) AssignArticleToGroup ¶
func (Tx) AssignArticleToGroups ¶
func (Tx) GroupHeadInsert ¶
func (Tx) GroupRealtimeQuery ¶
Click to show internal directories.
Click to hide internal directories.