groupidx

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupIndex

type GroupIndex interface {
	// known from "github.com/maxymania/fastnntp-polyglot"
	GroupHeadInsert(groups [][]byte, buf []int64) ([]int64, error)
	GroupHeadRevert(groups [][]byte, nums []int64) error
	ArticleGroupStat(group []byte, num int64, id_buf []byte) ([]byte, bool)
	ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, ok bool)
	GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)

	// Newly introduced.
	AssignArticleToGroup(group []byte, num, exp uint64, id []byte) error
	AssignArticleToGroups(groups [][]byte, nums []int64, exp uint64, id []byte) error /* Bulk-version*/
	ListArticleGroupRaw(group []byte, first, last int64, targ func(int64, []byte))
}

type P_GIPrototype

type P_GIPrototype GroupIndex

Don't use this!!!

Directories

Path Synopsis
Cassandra backend for GroupIDX.
Cassandra backend for GroupIDX.
Still subject to breaking changes.
Still subject to breaking changes.

Jump to

Keyboard shortcuts

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