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
Click to show internal directories.
Click to hide internal directories.