Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CheckHTTPGet represents HTTP GET CheckType. CheckHTTPGet = CheckType("HTTP_GET") // CheckTCP represents TCP CheckType. CheckTCP = CheckType("TCP") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is a type responsible for registering and deregistering services in Consul agent.
func (*Agent) Deregister ¶
func (a *Agent) Deregister(services []ServiceInstance) error
Deregister removes passed service instances from Consul discovery service.
func (*Agent) Register ¶
func (a *Agent) Register(services []ServiceInstance) error
Register adds passed service instances to Consul discovery service.
Click to show internal directories.
Click to hide internal directories.