Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufPool = sync.Pool{ New: func() interface{} { b := make([]byte, maxBufSize) return &b }, }
BufPool buf pool
View Source
var ErrNotPathID = errors.New("cpf: not pathID")
ErrNotPathID 是QueryGetPath的特指
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a cpf connect
type Server ¶
type Server struct {
// 欢迎 语句
Welcome string
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
// contains filtered or unexported fields
}
Server is a cpf server
func (*Server) ListenAndServe ¶
ListenAndServe the addr
func (*Server) SetAuthFunc ¶
SetAuthFunc 设置 验证接口, 不设置则为 不启用 验证
Click to show internal directories.
Click to hide internal directories.