discovery

package
Version: v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 9 Imported by: 3

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

func (*Client) IsMaster

func (c *Client) IsMaster() bool

IsMaster return if it is master

func (*Client) Run

func (c *Client) Run() error

Run run service discovery

func (*Client) Stop

func (c *Client) Stop() error

Stop stop discovery

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL