agent

package
v0.0.0-...-cf50a51 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 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