Documentation
¶
Index ¶
- Variables
- type Registry
- func (r *Registry) Deregister(ctx context.Context, instanceID string, serviceName string) error
- func (r *Registry) Register(ctx context.Context, instanceID string, serviceName string, hostPort string) error
- func (r *Registry) ReportHealthyState(instanceID string, serviceName string) error
- func (r *Registry) ServiceAddresses(ctx context.Context, serviceID string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("no service addresses found")
)
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
NewRegistry creates a new Redis-based service registry instance.
func (*Registry) Deregister ¶
Deregister removes a service record from the registry.
func (*Registry) Register ¶
func (r *Registry) Register(ctx context.Context, instanceID string, serviceName string, hostPort string) error
Register creates a service record in 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.