consul

package
v1.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultWatchWaitTime is the duration to wait when polling consul
	DefaultWatchWaitTime = 15 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogProvider

type CatalogProvider struct {
	provider.BaseProvider `mapstructure:",squash" export:"true"`
	Endpoint              string `description:"Consul server endpoint"`
	Domain                string `description:"Default domain used"`
	ExposedByDefault      bool   `description:"Expose Consul services by default" export:"true"`
	Prefix                string `description:"Prefix used for Consul catalog tags" export:"true"`
	FrontEndRule          string `description:"Frontend rule used for Consul services" export:"true"`
	// contains filtered or unexported fields
}

CatalogProvider holds configurations of the Consul catalog provider.

func (*CatalogProvider) Provide

func (p *CatalogProvider) Provide(configurationChan chan<- types.ConfigMessage, pool *safe.Pool, constraints types.Constraints) error

Provide allows the consul catalog provider to provide configurations to traefik using the given configuration channel.

type Provider

type Provider struct {
	kv.Provider `mapstructure:",squash" export:"true"`
}

Provider holds configurations of the p.

func (*Provider) CreateStore

func (p *Provider) CreateStore() (store.Store, error)

CreateStore creates the KV store

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- types.ConfigMessage, pool *safe.Pool, constraints types.Constraints) error

Provide allows the consul provider to provide configurations to traefik using the given configuration channel.

type Service added in v1.4.0

type Service struct {
	Name  string
	Tags  []string
	Nodes []string
}

Service represent a Consul service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL