Documentation ¶
Index ¶
- type DogDiscovery
- type EtcdConfig
- type EtcdDiscovery
- func (e *EtcdDiscovery) AddNode(key string, info service.NodeInfo)
- func (e *EtcdDiscovery) Close()
- func (e *EtcdDiscovery) DelNode(key, addr string)
- func (e *EtcdDiscovery) GetNodeInfo(key string) []service.NodeInfo
- func (e *EtcdDiscovery) Start() error
- func (e *EtcdDiscovery) Watch(key, path string) error
- func (e *EtcdDiscovery) WatchMulti(nodes map[string]string) error
- type EtcdNode
- type ZkConfig
- type ZkDiscovery
- func (z *ZkDiscovery) AddNode(key string, info service.NodeInfo)
- func (z *ZkDiscovery) Close()
- func (z *ZkDiscovery) DelNode(key string, addr string)
- func (z *ZkDiscovery) GetNodeInfo(key string) []service.NodeInfo
- func (z *ZkDiscovery) Start() error
- func (z *ZkDiscovery) Watch(key, path string) error
- func (z *ZkDiscovery) WatchMulti(nodes map[string]string) error
- type ZkNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DogDiscovery ¶
type EtcdConfig ¶
type EtcdDiscovery ¶
type EtcdDiscovery struct { EtcdConfig *EtcdConfig `inject:"etcdConfig" canNil:"true"` EtcdConf *ini.File `inject:"etcdConf" canNil:"true"` EtcdConfPath string `inject:"etcdConfPath" canNil:"true"` // contains filtered or unexported fields }
Encapsulates the etcd discovery
func (*EtcdDiscovery) Close ¶
func (e *EtcdDiscovery) Close()
func (*EtcdDiscovery) DelNode ¶
func (e *EtcdDiscovery) DelNode(key, addr string)
func (*EtcdDiscovery) GetNodeInfo ¶
func (e *EtcdDiscovery) GetNodeInfo(key string) []service.NodeInfo
func (*EtcdDiscovery) Start ¶
func (e *EtcdDiscovery) Start() error
func (*EtcdDiscovery) Watch ¶
func (e *EtcdDiscovery) Watch(key, path string) error
func (*EtcdDiscovery) WatchMulti ¶
func (e *EtcdDiscovery) WatchMulti(nodes map[string]string) error
type ZkDiscovery ¶
type ZkDiscovery struct { ZkConfig *ZkConfig `inject:"zkConfig" canNil:"true"` ZkConf *ini.File `inject:"zkConf" canNil:"true"` ZkConfPath string `inject:"zkConfPath" canNil:"true"` // contains filtered or unexported fields }
Encapsulates the zookeeper discovery
func (*ZkDiscovery) Close ¶
func (z *ZkDiscovery) Close()
func (*ZkDiscovery) DelNode ¶
func (z *ZkDiscovery) DelNode(key string, addr string)
func (*ZkDiscovery) GetNodeInfo ¶
func (z *ZkDiscovery) GetNodeInfo(key string) []service.NodeInfo
func (*ZkDiscovery) Start ¶
func (z *ZkDiscovery) Start() error
func (*ZkDiscovery) Watch ¶
func (z *ZkDiscovery) Watch(key, path string) error
func (*ZkDiscovery) WatchMulti ¶
func (z *ZkDiscovery) WatchMulti(nodes map[string]string) error
Click to show internal directories.
Click to hide internal directories.