Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound error = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
type State ¶
type State interface {
ServiceRegister(reg *api.AgentServiceRegistration) error
ServiceDeregister(service string) error
SetValue(key string, value string) error
DeleteValue(key string) error
GetValue(key string) (string, error)
WatchValue(key string, cb func(value string)) (string, error)
GetInstance(service string) (*api.CatalogService, error)
GetInstances(service string) ([]*api.CatalogService, error)
WatchInstances(service string, cb func(value []*api.CatalogService)) ([]*api.CatalogService, error)
}
Click to show internal directories.
Click to hide internal directories.