Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClosed = errors.New("pool is closed")
)
Functions ¶
func SendWsRequest ¶
func SetChannelPoolMaxCap ¶
func SetChannelPoolMaxCap(max int)
SetChannelPoolMaxCap set connection pool max cap
func SetEndpoint ¶
func SetEndpoint(endpoint string)
Types ¶
type Option ¶
func WithHandshakeTimeout ¶
func WithReadBufferSize ¶
func WithReadTimeoutTimeout ¶
func WithWriteBufferSize ¶
func WithWriteTimeoutTimeout ¶
type OptionFunc ¶
func (OptionFunc) Apply ¶
func (f OptionFunc) Apply(conn *recws.RecConn)
type PoolConn ¶
func (*PoolConn) MarkUnusable ¶
func (p *PoolConn) MarkUnusable()
MarkUnusable() marks the connection not usable any more, to let the pool close it instead of returning it to pool.
Click to show internal directories.
Click to hide internal directories.