Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointWatchHandler ¶ added in v0.3.2
type EndpointWatchHandler func([]Endpoint)
EndpointWatchHandler consumes the latest endpoint snapshot for a service key.
type Registerer ¶ added in v0.2.10
type Resolver ¶ added in v0.3.2
type Resolver interface {
Resolve(ctx context.Context, key string) ([]Endpoint, error)
// Watch registers a callback which will be invoked whenever the endpoints change.
// The returned cancel func should be called to stop watching.
Watch(ctx context.Context, key string, handler EndpointWatchHandler) (context.CancelFunc, error)
}
Resolver returns available endpoints for a given service key.
Click to show internal directories.
Click to hide internal directories.