consul

package
v0.0.0-...-51a2c4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 5 Imported by: 0

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 Init

func Init() (err error)

Init must be called once before using this package.

func RegisterTCPService

func RegisterTCPService(name, addr string, port int) error

RegisterTCPService register service in consul with TCP check.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL