consul

package
v3.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *Config) (types.ConfigSource, error)

New creates a new consul ConfigSource

Types

type Config

type Config struct {
	// A Consul server URL
	Endpoint string `yaml:"endpoint"`
	// An optional username to use when connecting
	Username string `yaml:"username"`
	// An optional password to use when connecting
	Password string `yaml:"password" neverLog:"true"`
	// An authentication token, if needed
	Token string `yaml:"token" neverLog:"true"`
	// The Consul datacenter to use
	Datacenter string `yaml:"datacenter"`
}

Config for the consul client

Jump to

Keyboard shortcuts

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