NewPoolHook creates a new pool hook
(baseDialer func(context.Context, string, string) (net.Conn, error), network string, config *Config, operationsManager OperationsManagerInterface)
| 55 | |
| 56 | // NewPoolHook creates a new pool hook |
| 57 | func NewPoolHook(baseDialer func(context.Context, string, string) (net.Conn, error), network string, config *Config, operationsManager OperationsManagerInterface) *PoolHook { |
| 58 | return NewPoolHookWithPoolSize(baseDialer, network, config, operationsManager, 0) |
| 59 | } |
| 60 | |
| 61 | // NewPoolHookWithPoolSize creates a new pool hook with pool size for better worker defaults |
| 62 | func NewPoolHookWithPoolSize(baseDialer func(context.Context, string, string) (net.Conn, error), network string, config *Config, operationsManager OperationsManagerInterface, poolSize int) *PoolHook { |