Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClosed = errors.New("pool is closed")
)
Functions ¶
func SendWsRequest ¶
func SetChannelPoolMaxCap ¶ added in v0.4.9
func SetChannelPoolMaxCap(max int)
SetChannelPoolMaxCap set connection pool max cap
func SetEndpoint ¶
func SetEndpoint(endpoint string)
Types ¶
type Option ¶ added in v0.4.8
func WithHandshakeTimeout ¶ added in v0.4.8
func WithReadBufferSize ¶ added in v0.4.11
func WithReadTimeoutTimeout ¶ added in v0.4.8
func WithWriteBufferSize ¶ added in v0.4.11
func WithWriteTimeoutTimeout ¶ added in v0.4.8
type OptionFunc ¶ added in v0.4.8
func (OptionFunc) Apply ¶ added in v0.4.8
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.