package discovery
import "github.com/coreos/etcd/discovery"
Package discovery provides an implementation of the cluster discovery that is used by etcd.
Index ¶
- Variables
- func GetCluster(durl, dproxyurl string) (string, error)
- func JoinCluster(durl, dproxyurl string, id types.ID, config string) (string, error)
Variables ¶
var ( ErrInvalidURL = errors.New("discovery: invalid URL") ErrBadSizeKey = errors.New("discovery: size key is bad") ErrSizeNotFound = errors.New("discovery: size key not found") ErrTokenNotFound = errors.New("discovery: token not found") ErrDuplicateID = errors.New("discovery: found duplicate id") ErrDuplicateName = errors.New("discovery: found duplicate name") ErrFullCluster = errors.New("discovery: cluster is full") ErrTooManyRetries = errors.New("discovery: too many retries") ErrBadDiscoveryEndpoint = errors.New("discovery: bad discovery endpoint") )
Functions ¶
func GetCluster ¶
GetCluster will connect to the discovery service at the given url and retrieve a string describing the cluster
func JoinCluster ¶
JoinCluster will connect to the discovery service at the given url, and register the server represented by the given id and config to the cluster
Source Files ¶
- Version
- v3.3.12+incompatible
- Published
- Feb 7, 2019
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 16 minutes ago –
Tools for package owners.