Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConnPool ¶
func InitConnPool(pool ConnPool)
Types ¶
type ConnPool ¶
type ConnPool interface { Get(ctx context.Context) (net.Conn, error) ReconnectTrigger() chan struct{} }
func GetConnPool ¶
func GetConnPool() ConnPool
GetConnPool first executes InitConnPool and then calls it, otherwise it returns nil
Click to show internal directories.
Click to hide internal directories.