Documentation ¶
Index ¶
- func NewServerDiscovery(serviceName string, serviceList []string) servicediscovery.IServiceDiscovery
- type Registrar
- func (r Registrar) Destroy() error
- func (r Registrar) GetAllInstances(serviceName string) []servicediscovery.ServiceInstance
- func (r Registrar) GetHealthyInstances(serviceName string) []servicediscovery.ServiceInstance
- func (r Registrar) GetName() string
- func (r Registrar) Register() error
- func (r Registrar) Unregister() error
- func (r Registrar) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerDiscovery ¶
func NewServerDiscovery(serviceName string, serviceList []string) servicediscovery.IServiceDiscovery
Types ¶
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
func (Registrar) GetAllInstances ¶
func (r Registrar) GetAllInstances(serviceName string) []servicediscovery.ServiceInstance
func (Registrar) GetHealthyInstances ¶
func (r Registrar) GetHealthyInstances(serviceName string) []servicediscovery.ServiceInstance
func (Registrar) Unregister ¶
Click to show internal directories.
Click to hide internal directories.