Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SD ¶
type SD interface { // Update update node record Update(listenIP, listenPort string, dc []string, weight int64) error // Delete delete node record (with ip/port/dcs) Delete(ip, port string, dcs []string) error // Delete delete node record DeleteNode(node string) (err error) // Clear clear node record (all except with current listen IP/port) Clear(listenIP, listenPort string) error // Nodes return all registered nodes (for all hostnames in namespace) Nodes() (nodes []utils.KV, err error) // List return all registered nodes for hostname List() (nodes []string, err error) // Namespace return namespace Namespace() string }
Click to show internal directories.
Click to hide internal directories.