Documentation ¶
Index ¶
- Variables
- func Build(id string) naming.Resolver
- func Builder() naming.Builder
- type Config
- type Discovery
- func (d *Discovery) Build(appid string, opts ...naming.BuildOpt) naming.Resolver
- func (d *Discovery) Close() error
- func (d *Discovery) GetInstances(ctx context.Context, appid string, opts *naming.BuildOptions) (ins *naming.InstancesInfo, ok bool)
- func (d *Discovery) Register(ctx context.Context, ins *naming.Instance) (cancelFunc context.CancelFunc, err error)
- func (d *Discovery) Reload(c *Config)
- func (d *Discovery) Scheme() string
- func (d *Discovery) Set(ins *naming.Instance) error
- type Resolve
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDuplication duplication treeid. ErrDuplication = errors.New("discovery: instance duplicate registration") )
Functions ¶
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery is discovery client.
func (*Discovery) GetInstances ¶
func (d *Discovery) GetInstances(ctx context.Context, appid string, opts *naming.BuildOptions) (ins *naming.InstancesInfo, ok bool)
Click to show internal directories.
Click to hide internal directories.