Documentation ¶
Index ¶
- Constants
- func Init()
- type Debug
- func (m *Debug) Close()
- func (m *Debug) Get(key string, dir bool) (*discovery.KVPairs, error)
- func (m *Debug) Incr(key string) (int64, error)
- func (m *Debug) KeepAlive(key, value string, ttl time.Duration) error
- func (m *Debug) Set(key, value string, ttl time.Duration) error
- func (m *Debug) Type() string
- func (m *Debug) Watch(key string, _ uint64, dir bool) (discovery.EventChan, error)
- type Discovery
- type NodeInfo
Constants ¶
View Source
const ( ServicePrefix = "service" ServiceNodeIDKey = "node_id" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Debug ¶ added in v2.0.2
func (*Debug) KeepAlive ¶ added in v2.0.2
KeepAlive sets value and updates the ttl for the specified key.
type Discovery ¶ added in v2.0.2
type Discovery struct {
// contains filtered or unexported fields
}
func (*Discovery) GetAddresses ¶ added in v2.0.2
GetAddresses returns rpc service addresses.
func (*Discovery) PassthroughAddr ¶ added in v2.0.2
PassthroughAddr returns service unique ID and rpc address registered for the component.
Click to show internal directories.
Click to hide internal directories.