Documentation ¶
Index ¶
- Variables
- type Client
- type Conn
- func (c *Conn) Close()
- func (c *Conn) Done() chan struct{}
- func (c *Conn) Id() uint64
- func (c *Conn) IsClosed() bool
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Name() string
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetUserData(data any)
- func (c *Conn) Shutdown()
- func (c *Conn) String() string
- func (c *Conn) UserData() any
- func (c *Conn) Write(data []byte) error
- type Option
- func WithBinary() Option
- func WithCheckOrigin(checkOrigin func(_ *http.Request) bool) Option
- func WithHandshakeTimeout(handshakeTimeout time.Duration) Option
- func WithKeepAlivePeriod(keepAlivePeriod time.Duration) Option
- func WithMaxConnNum(maxConnNum int) Option
- func WithPattern(pattern string) Option
- func WithReadLimit(readLimit int) Option
- func WithReadTimeout(readTimeout time.Duration) Option
- func WithText() Option
- func WithWriteChanSize(writeChanSize int) Option
- func WithWriteTimeout(writeTimeout time.Duration) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
func (*Conn) SetUserData ¶
type Option ¶
type Option func(o *options)
func WithBinary ¶
func WithBinary() Option
func WithHandshakeTimeout ¶
func WithKeepAlivePeriod ¶
func WithMaxConnNum ¶
func WithPattern ¶
func WithReadLimit ¶
func WithReadTimeout ¶
func WithWriteChanSize ¶
func WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.