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