Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client client for service discovery
func New ¶
func New(zkAddrs, zkSubPath string, svcInfo *types.ServerInfo) *Client
New create client for service discovery
func (*Client) GetServers ¶
func (c *Client) GetServers() []*types.ServerInfo
GetServers get server info
Click to show internal directories.
Click to hide internal directories.