Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("No Service addresses are found")
Functions ¶
func GenerateInstanceID ¶
Types ¶
type Registry ¶
type Registry interface {
Register(ctx context.Context, instanceID string, serviceName string, hostPort string) error
Deregister(ctx context.Context, instanceID string, serviceName string, hostPort string) error
ServiceAddresses(ctx context.Context, serviceID string) ([]string, error)
// ReportHealthyState push mechanism for reporting healthy state to registry
ReportHealthyState(instanceID string, serviceName string) error
}
Click to show internal directories.
Click to hide internal directories.