Documentation
¶
Index ¶
Constants ¶
View Source
const ( MsgHeadLen = 4 MaxBodySize = 10 * 1024 * 1024 MsgReadTimeout = 60 * time.Second MsgWriteTimeout = 60 * time.Second )
View Source
const ( KeyLength = 32 NonceLength = 16 HMACLength = 32 PBKDF2Iter = 100000 MagicHeader = "ENC" )
Variables ¶
View Source
var SigKey = ""
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RecvMessage ¶
func (*Client) SendMessage ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) GetRemoteAddr ¶
func (*Conn) RecvMessage ¶
func (*Conn) SendMessage ¶
type HandlerFunc ¶
HandlerFunc 是一个适配器,允许普通函数作为Handler使用
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetHandler ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.