Documentation ¶
Index ¶
- Variables
- 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
- type Option
- type RawHandler
- type WireHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ENoPing = errors.New("NoPing")
View Source
var ENoResult = errors.New("NoResult")
Functions ¶
This section is empty.
Types ¶
type 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 ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func FastCiphersOption ¶
func FastCiphersOption() Option
func FastKexOption ¶
func FastKexOption() Option
type RawHandler ¶
type RawHandler struct { WireHandler Config ssh.ServerConfig }
func (*RawHandler) SetCompatibleCiphers ¶
func (r *RawHandler) SetCompatibleCiphers()
func (*RawHandler) SetCompatibleMac ¶
func (r *RawHandler) SetCompatibleMac()
func (*RawHandler) SetSafeCiphers ¶
func (r *RawHandler) SetSafeCiphers()
type WireHandler ¶
type WireHandler struct { Inner groupidx.GroupIndex // contains filtered or unexported fields }
func (*WireHandler) HandleConnection ¶
func (wh *WireHandler) HandleConnection(conn *ssh.ServerConn, chs <-chan ssh.NewChannel, reqs <-chan *ssh.Request)
Click to show internal directories.
Click to hide internal directories.