Documentation ¶
Overview ¶
Package consul provide helpers for interacting with consul.
Use defaults to connect to consul ($CONSUL_HTTP_ADDR or localhost).
TODO If service can be somehow unregistered (consul has restarted and lost this registration - shouldn't happens in production where consul is running with persistence, but may happens in -dev) then detect this and re-register or crash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTCPService ¶
RegisterTCPService register service in consul with TCP check.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.