Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelectOption ¶
type SelectOption func(*SelectOptions)
SelectOption used when making a select call
type SelectOptions ¶
type Selector ¶
type Selector interface { Init(opts ...Option) error Options() Options // Select returns a function which should return the next node Select(service string, opts ...SelectOption) (Next, error) GetService(name string) ([]*reg.Service, error) // Mark sets the success/error against a node Mark(service string, node *reg.Node, err error) // Reset returns state back to zero for a service Reset(service string) // Close renders the selector unusable Close() error // Name of the selector String() string }
Click to show internal directories.
Click to hide internal directories.