Documentation ¶
Overview ¶
Package registry implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- type Client
- type Config
- type Datacenter
- type Option
- func WithDatacenter(datacenter Datacenter) Option
- func WithDeregisterCriticalServiceAfter(duration int) Option
- func WithHealthCheck(check bool) Option
- func WithHealthCheckInterval(interval int) Option
- func WithHeartbeat(heartbeat bool) Option
- func WithServiceCheck(check *api.AgentServiceCheck) Option
- func WithServiceResolver(resolver ServiceResolver) Option
- func WithTimeout(timeout time.Duration) Option
- type Registry
- type ServiceResolver
Constants ¶
View Source
const ( SingleDatacenter = consul.SingleDatacenter MultiDatacenter = consul.MultiDatacenter Type = "consul" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datacenter ¶
type Datacenter = consul.Datacenter
type Option ¶
type Option = consul.Option
func WithDatacenter ¶
func WithDatacenter(datacenter Datacenter) Option
WithDatacenter is a wrapper for consul.WithDatacenter
func WithDeregisterCriticalServiceAfter ¶
WithDeregisterCriticalServiceAfter is a wrapper for consul.WithDeregisterCriticalServiceAfter
func WithHealthCheck ¶
WithHealthCheck is a wrapper for consul.WithHealthCheck
func WithHealthCheckInterval ¶
WithHealthCheckInterval is a wrapper for consul.WithHealthCheckInterval
func WithHeartbeat ¶
WithHeartbeat is a wrapper for consul.WithHeartbeat
func WithServiceCheck ¶
func WithServiceCheck(check *api.AgentServiceCheck) Option
WithServiceCheck is a wrapper for consul.WithServiceCheck
func WithServiceResolver ¶
func WithServiceResolver(resolver ServiceResolver) Option
WithServiceResolver is a wrapper for consul.WithServiceResolver
func WithTimeout ¶
WithTimeout is a wrapper for consul.WithTimeout
type ServiceResolver ¶
type ServiceResolver = consul.ServiceResolver
Click to show internal directories.
Click to hide internal directories.