Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupService ¶
LookupService connects to consul on the given address and looks up for IP address of the service
func NewgRPCHealthCheck ¶
func NewgRPCHealthCheck(service string, address string, port int) *consul.AgentServiceCheck
NewgRPCHealthCheck creates very basic gRPC healthcheck for Consul
Types ¶
type Client ¶
type Client interface { Lookup(service string, tag string) (ipPort string, err error) Register(service string, address string, port int, healthcheck *consul.AgentServiceCheck) error }
Client essential consul API
func NewConsulClient ¶
NewConsulClient returns a Client interface for given consul address
Click to show internal directories.
Click to hide internal directories.