# Functions
NewMockAgent that returns all checks as passing.
No description provided by the author
NewServiceClient creates a new Consul ServiceClient from an existing Consul API Client and logger.
# Constants
DefaultQueryWaitDuration is the max duration the Consul Agent will spend waiting for a response from a Consul Query.
ServiceTagHTTP is the tag assigned to HTTP services.
ServiceTagRPC is the tag assigned to RPC services.
ServiceTagSerf is the tag assigned to Serf services.
# Structs
AllocRegistration holds the status of services registered for a particular allocations by task.
MockAgent is a fake in-memory Consul backend for ServiceClient.
MockCatalog can be used for testing where the CatalogAPI is needed.
ServiceClient handles task and agent service registration with Consul.
ServiceRegistration holds the status of a registered Consul Service and its Checks.
TaskRegistration holds the status of services registered for a particular task.
# Interfaces
AgentAPI is the consul/api.Agent API used by Nomad.
CatalogAPI is the consul/api.Catalog API used by Nomad.
ChecksAPI is the part of the Consul API the checkWatcher requires.
TaskRestarter allows the checkWatcher to restart tasks.