Documentation ¶
Index ¶
- Constants
- func Client() etcd.Client
- func IsKeyAlreadyExistError(err error) bool
- func KAPI() etcd.KeysAPI
- func Register(service string, host *Host, infos *Infos, stop chan struct{}) (chan struct{}, error)
- func Subscribe(service string) etcd.Watcher
- func SubscribeDown(service string) (<-chan string, <-chan *etcd.Error)
- func SubscribeNew(service string) (<-chan *Host, <-chan *etcd.Error)
- func SubscribeUpdate(service string) (<-chan *Host, <-chan *etcd.Error)
- type Host
- type Hosts
- type Infos
- type Ports
- type Service
Constants ¶
View Source
const (
HEARTBEAT_DURATION = 5
)
Variables ¶
This section is empty.
Functions ¶
func IsKeyAlreadyExistError ¶
Types ¶
type Host ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.