Documentation ¶
Index ¶
- Constants
- Variables
- func NewServer(ginr groupidx.GroupIndex) *fastrpc.Server
- type Client
- func (c *Client) ArticleGroupList(group []byte, first, last int64, targ func(int64))
- func (c *Client) ArticleGroupMove(group []byte, i int64, backward bool, id_buf []byte) (ni int64, id []byte, _ok bool)
- func (c *Client) ArticleGroupStat(group []byte, num int64, id_buf []byte) ([]byte, bool)
- func (c *Client) AssignArticleToGroup(group []byte, num, exp uint64, id []byte) error
- func (c *Client) AssignArticleToGroups(groups [][]byte, nums []int64, exp uint64, id []byte) error
- func (c *Client) GroupHeadInsert(groups [][]byte, buf []int64) ([]int64, error)
- func (c *Client) GroupHeadRevert(groups [][]byte, nums []int64) error
- func (c *Client) GroupRealtimeQuery(group []byte) (number int64, low int64, high int64, ok bool)
- func (c *Client) ListArticleGroupRaw(group []byte, first, last int64, targ func(int64, []byte))
- func (c *Client) Ping() error
Constants ¶
View Source
const ProtocolVersion byte = 1
View Source
const SniffHeader = "GIX"
Variables ¶
View Source
var ENoPing = errors.New("NoPing")
View Source
var ENoResult = errors.New("NoResult")
Functions ¶
Types ¶
type Client ¶
type Client struct {
Inner client
}
func (*Client) ArticleGroupList ¶
func (*Client) ArticleGroupMove ¶
func (*Client) ArticleGroupStat ¶
func (*Client) AssignArticleToGroup ¶
Newly introduced.
func (*Client) AssignArticleToGroups ¶
func (*Client) GroupHeadInsert ¶
known from "github.com/maxymania/fastnntp-polyglot"
func (*Client) GroupHeadRevert ¶
func (*Client) GroupRealtimeQuery ¶
func (*Client) ListArticleGroupRaw ¶
Click to show internal directories.
Click to hide internal directories.