Documentation ¶
Index ¶
- type Client
- type Conn
- type Handler
- type Option
- func WithAuthFunc(authFunc func(*http.Request) (bool, interface{})) Option
- func WithHttpTimeout(duration time.Duration) Option
- func WithHttpsCert(cert, key string) Option
- func WithMaxConnNum(num int) Option
- func WithMaxMsgLen(num uint32) Option
- func WithPendingWriteNum(num int) Option
- func WithTextFormat(usingText bool) Option
- type Server
- type WebsocketConnSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Conn ¶
func (*Conn) RemoteAddr ¶
type Option ¶
type Option func(*Server)
func WithHttpTimeout ¶
func WithHttpsCert ¶
func WithMaxConnNum ¶
func WithMaxMsgLen ¶
func WithPendingWriteNum ¶
func WithTextFormat ¶
type Server ¶
type Server struct { Addr string MaxConnNum int PendingWriteNum int MaxMsgLen uint32 HTTPTimeout time.Duration CertFile string KeyFile string NewAgent func(*Conn) network.Agent AuthFunc func(*http.Request) (bool, interface{}) TextFormat bool //纯文本还是二进制 // contains filtered or unexported fields }
type WebsocketConnSet ¶
Click to show internal directories.
Click to hide internal directories.