Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConnFactory ¶
创建连接的方法
func ConnFactoryGrpc ¶
func ConnFactoryGrpc(getHostsFunc GetHostsFunc) ConnFactory
type GetHostsFunc ¶
func GetHostsFuncFromConsul ¶
func GetHostsFuncFromConsul(consulClient *api.Client, ServiceId string) GetHostsFunc
type Pool ¶
func NewPool ¶
func NewPool(factory ConnFactory, connTestFunc ConnTestFunc, options ...Option) (*Pool, error)
Click to show internal directories.
Click to hide internal directories.