Documentation ¶
Index ¶
- Constants
- func NewConnPool(ctx context.Context, host types.Host) types.ConnectionPool
- func NewKeepAlive(codec str.Client, proto types.ProtocolName, timeout time.Duration, ...) types.KeepAlive
- func NewPoolBinding(p *connpool) types.ConnectionPool
- func NewPoolMultiplex(p *connpool) types.ConnectionPool
- func NewPoolPingPong(p *connpool) types.ConnectionPool
- func SetIdleTimeout(d time.Duration)
Constants ¶
View Source
const ( Init = iota Connecting Connected )
for xprotocol
Variables ¶
This section is empty.
Functions ¶
func NewConnPool ¶
NewConnPool init a connection pool
func NewKeepAlive ¶ added in v0.11.0
func NewPoolBinding ¶ added in v0.17.0
func NewPoolBinding(p *connpool) types.ConnectionPool
NewPoolBinding generates a binding connection pool the upstream connection close will trigger the downstream connection to close and vice versa
func NewPoolMultiplex ¶ added in v0.17.0
func NewPoolMultiplex(p *connpool) types.ConnectionPool
NewPoolMultiplex generates a multiplex conn pool
func NewPoolPingPong ¶ added in v0.17.0
func NewPoolPingPong(p *connpool) types.ConnectionPool
NewPoolPingPong generates a connection pool which uses p pingpong protocol
func SetIdleTimeout ¶ added in v0.11.0
SetIdleTimeout calculates the idle timeout as max idle count.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.