agent

package
v0.0.0-...-1389b68 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartConsulTestServer

func StartConsulTestServer() (*testutil.TestServer, *consulapi.Client)

Types

type ConsulAgent

type ConsulAgent interface {
	Locality() *cp.Locality
	CatalogServiceEndpoints(serviceName ...string) ([][]*api.CatalogService, error)
	HealthCheckCatalogServiceEndpoints(serviceNames ...string) ([][]*api.CatalogService, error)
	WatchParams() map[string]string
}

ConsulAgent describes consul agent behaviour

func NewAgent

func NewAgent(host, token, datacenter string) ConsulAgent

NewAgent creates a new instance of a ConsulAgent

Jump to

Keyboard shortcuts

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