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) 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 ¶
Functions ¶
Types ¶
type Config ¶
Config discovery configures.
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery is discovery client.
func (*Discovery) Build ¶
Build disovery resovler builder.
func (*Discovery) Close ¶
Close stop all running process including discovery and register
Click to show internal directories.
Click to hide internal directories.