Documentation
¶
Overview ¶
Package consul contains generated code by adptool.
Package consul implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func New(apiClient *api.Client, opts ...consul.Option) *consul.Registry
- func WithConsulOption(opts ...consul.Option) options.Option
- func WithDatacenter(dc consul.Datacenter) consul.Option
- func WithDeregisterCriticalServiceAfter(interval int) consul.Option
- func WithHealthCheck(enable bool) consul.Option
- func WithHealthCheckInterval(interval int) consul.Option
- func WithHeartbeat(enable bool) consul.Option
- func WithServiceCheck(checks ...*api.AgentServiceCheck) consul.Option
- func WithServiceResolver(fn consul.ServiceResolver) consul.Option
- func WithTags(tags []string) consul.Option
- func WithTimeout(timeout time.Duration) consul.Option
- type Client
- type Config
- type Datacenter
- type Option
- type Registry
- type ServiceResolver
Constants ¶
View Source
const ( MultiDatacenter = consul.MultiDatacenter SingleDatacenter = consul.SingleDatacenter )
View Source
const Type = "consul"
Variables ¶
This section is empty.
Functions ¶
func WithDatacenter ¶
func WithDatacenter(dc consul.Datacenter) consul.Option
func WithHealthCheck ¶
func WithHealthCheckInterval ¶
func WithHeartbeat ¶
func WithServiceCheck ¶
func WithServiceCheck(checks ...*api.AgentServiceCheck) consul.Option
func WithServiceResolver ¶
func WithServiceResolver(fn consul.ServiceResolver) consul.Option
Types ¶
type Datacenter ¶
type Datacenter = consul.Datacenter
type ServiceResolver ¶
type ServiceResolver = consul.ServiceResolver
Click to show internal directories.
Click to hide internal directories.