package discovery

import "github.com/coreos/etcd/discovery"

Package discovery provides an implementation of the cluster discovery that is used by etcd.

Index

Constants

const (
	// Environment variable used to configure an HTTP proxy for discovery
	DiscoveryProxyEnv = "ETCD_DISCOVERY_PROXY"
)

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")
	ErrFullCluster    = errors.New("discovery: cluster is full")
	ErrTooManyRetries = errors.New("discovery: too many retries")
)

Types

type Discoverer

type Discoverer interface {
	Discover() (string, error)
}

func New

func New(durl string, id types.ID, config string) (Discoverer, error)

Source Files

discovery.go doc.go

Version
v0.5.0-alpha.1
Published
Oct 31, 2014
Platform
linux/amd64
Imports
14 packages
Last checked
25 minutes ago

Tools for package owners.