Documentation ¶
Overview ¶
Package consul is a wrapper around the Hashicorp Consul service discovery functionnality
Consul is a highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
Index ¶
- Constants
- func New(tree config.Tree) (disco.Agent, error)
- type Agent
- func (a *Agent) Deregister(ctx context.Context, id string) error
- func (a *Agent) Leave(ctx context.Context)
- func (a *Agent) Register(ctx context.Context, r *disco.Registration) (string, error)
- func (a *Agent) Service(ctx context.Context, name string, tags ...string) (disco.Service, error)
- func (a *Agent) Services(ctx context.Context, tags ...string) (map[string]disco.Service, error)
- type Config
Constants ¶
View Source
const Name = "consul"
Name contains the adapter registered name
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.