###Etcd
Is the etcd implementation for herald declare.
-- import "github.com/duckbunny/etcd"
var (
// Where the ServiceKVPath resides
KVpath string = "services"
// Title for specifying herald in flags
Title string = "etcd"
)
func FormattedKey(s *service.Service) string
FormattedKey returns correctly formatted key of the service
func Machines() []string
func ProcessEtcdErrors(err error) error
func Register()
Register this herald with consul
type Etcd struct {
KeysAPI client.KeysAPI
}
Etcd structure stores the etcd clients KeysAPI
func New() *Etcd
New returns a new Etcd struct
func (e *Etcd) Declare(s *service.Service) error
Declare the service per the Declare interface in Herald.
func (e *Etcd) Get(s *service.Service) error
Get retrieves a service per the Declare interface in Herald
func (e *Etcd) Init() error