Documentation ¶
Index ¶
- type Registry
- func (r *Registry) Deregister(ctx context.Context, instanceID string, _ string) error
- func (r *Registry) Register(ctx context.Context, instanceID string, serviceName string, hostPort string) error
- func (r *Registry) ReportHealthyState(instanceID string, _ string) error
- func (r *Registry) ServiceAddress(ctx context.Context, serviceName string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry defines a Consul-based service registry.
func NewRegistry ¶
NewRegistry creates a new Consul-based service registry instance.
func (*Registry) Deregister ¶
Deregister removes a service record from the registry.
func (*Registry) ReportHealthyState ¶
ReportHealthyState is a push mechanism for reporting healthy state to the registry.
Click to show internal directories.
Click to hide internal directories.