Documentation ¶
Index ¶
- Constants
- func NewEnvironment(l log.Logger, registrationScheme string, co Options, eo ...service.Option) (service.Environment, error)
- func NewInstancer(o InstancerOptions) sd.Instancer
- func NewRegistrar(c gokitconsul.Client, u ttlUpdater, r *api.AgentServiceRegistration, ...) (sd.Registrar, error)
- type Client
- type Environment
- type InstancerOptions
- type Options
- type Watch
Constants ¶
View Source
const DefaultDatacenterRetries = 10
Variables ¶
This section is empty.
Functions ¶
func NewEnvironment ¶
func NewInstancer ¶
func NewInstancer(o InstancerOptions) sd.Instancer
func NewRegistrar ¶
func NewRegistrar(c gokitconsul.Client, u ttlUpdater, r *api.AgentServiceRegistration, logger log.Logger) (sd.Registrar, error)
NewRegistrar creates an sd.Registrar, binding any TTL checks to the Register/Deregister lifecycle as needed.
Types ¶
type Client ¶
type Client interface { gokitconsul.Client // Datacenters returns the known datacenters from the catalog Datacenters() ([]string, error) }
Client extends the go-kit consul Client interface with behaviors specific to XMiDT
type Environment ¶
type Environment interface { service.Environment // Client returns the custom consul Client interface exposed by this package Client() Client }
Environment is a consul-specific interface for the service discovery environment. A primary use case is obtaining access to the underlying consul client for use in direct API calls.
type InstancerOptions ¶
Click to show internal directories.
Click to hide internal directories.