Documentation ¶
Index ¶
- Constants
- type EtcdServiceRegistry
- func (e *EtcdServiceRegistry) ApplyServiceInstances(instances map[string]*serviceregistry.ServiceInstanceSpec) error
- func (e *EtcdServiceRegistry) Category() supervisor.ObjectCategory
- func (e *EtcdServiceRegistry) Close()
- func (e *EtcdServiceRegistry) DefaultSpec() interface{}
- func (e *EtcdServiceRegistry) DeleteServiceInstances(instances map[string]*serviceregistry.ServiceInstanceSpec) error
- func (e *EtcdServiceRegistry) GetServiceInstance(serviceName, instanceID string) (*serviceregistry.ServiceInstanceSpec, error)
- func (e *EtcdServiceRegistry) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
- func (e *EtcdServiceRegistry) Init(superSpec *supervisor.Spec)
- func (e *EtcdServiceRegistry) Kind() string
- func (e *EtcdServiceRegistry) ListAllServiceInstances() (map[string]*serviceregistry.ServiceInstanceSpec, error)
- func (e *EtcdServiceRegistry) ListServiceInstances(serviceName string) (map[string]*serviceregistry.ServiceInstanceSpec, error)
- func (e *EtcdServiceRegistry) Name() string
- func (e *EtcdServiceRegistry) Notify() <-chan *serviceregistry.RegistryEvent
- func (e *EtcdServiceRegistry) Status() *supervisor.Status
- type Spec
- type Status
Constants ¶
const ( // Category is the category of EtcdServiceRegistry. Category = supervisor.CategoryBusinessController // Kind is the kind of EtcdServiceRegistry. Kind = "EtcdServiceRegistry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdServiceRegistry ¶
type EtcdServiceRegistry struct {
// contains filtered or unexported fields
}
EtcdServiceRegistry is Object EtcdServiceRegistry.
func (*EtcdServiceRegistry) ApplyServiceInstances ¶
func (e *EtcdServiceRegistry) ApplyServiceInstances(instances map[string]*serviceregistry.ServiceInstanceSpec) error
ApplyServiceInstances applies service instances to the registry.
func (*EtcdServiceRegistry) Category ¶
func (e *EtcdServiceRegistry) Category() supervisor.ObjectCategory
Category returns the category of EtcdServiceRegistry.
func (*EtcdServiceRegistry) Close ¶
func (e *EtcdServiceRegistry) Close()
Close closes EtcdServiceRegistry.
func (*EtcdServiceRegistry) DefaultSpec ¶
func (e *EtcdServiceRegistry) DefaultSpec() interface{}
DefaultSpec returns the default spec of EtcdServiceRegistry.
func (*EtcdServiceRegistry) DeleteServiceInstances ¶
func (e *EtcdServiceRegistry) DeleteServiceInstances(instances map[string]*serviceregistry.ServiceInstanceSpec) error
DeleteServiceInstances applies service instances to the registry.
func (*EtcdServiceRegistry) GetServiceInstance ¶
func (e *EtcdServiceRegistry) GetServiceInstance(serviceName, instanceID string) (*serviceregistry.ServiceInstanceSpec, error)
GetServiceInstance get service instance from the registry.
func (*EtcdServiceRegistry) Inherit ¶
func (e *EtcdServiceRegistry) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
Inherit inherits previous generation of EtcdServiceRegistry.
func (*EtcdServiceRegistry) Init ¶
func (e *EtcdServiceRegistry) Init(superSpec *supervisor.Spec)
Init initializes EtcdServiceRegistry.
func (*EtcdServiceRegistry) Kind ¶
func (e *EtcdServiceRegistry) Kind() string
Kind returns the kind of EtcdServiceRegistry.
func (*EtcdServiceRegistry) ListAllServiceInstances ¶
func (e *EtcdServiceRegistry) ListAllServiceInstances() (map[string]*serviceregistry.ServiceInstanceSpec, error)
ListAllServiceInstances list all service instances from the registry.
func (*EtcdServiceRegistry) ListServiceInstances ¶
func (e *EtcdServiceRegistry) ListServiceInstances(serviceName string) (map[string]*serviceregistry.ServiceInstanceSpec, error)
ListServiceInstances list service instances of one service from the registry.
func (*EtcdServiceRegistry) Notify ¶
func (e *EtcdServiceRegistry) Notify() <-chan *serviceregistry.RegistryEvent
Notify returns notify channel.
func (*EtcdServiceRegistry) Status ¶
func (e *EtcdServiceRegistry) Status() *supervisor.Status
Status returns status of EtcdServiceRegister.