Skip to content

duckbunny/etcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Etcd

Is the etcd implementation for herald declare.

GoDoc

etcd

-- import "github.com/duckbunny/etcd"

Usage

var (

	// Where the ServiceKVPath resides
	KVpath string = "services"

	// Title for specifying herald in flags
	Title string = "etcd"
)

func FormattedKey

func FormattedKey(s *service.Service) string

FormattedKey returns correctly formatted key of the service

func Machines

func Machines() []string

func ProcessEtcdErrors

func ProcessEtcdErrors(err error) error

func Register

func Register()

Register this herald with consul

type Etcd

type Etcd struct {
	KeysAPI client.KeysAPI
}

Etcd structure stores the etcd clients KeysAPI

func New

func New() *Etcd

New returns a new Etcd struct

func (*Etcd) Declare

func (e *Etcd) Declare(s *service.Service) error

Declare the service per the Declare interface in Herald.

func (*Etcd) Get

func (e *Etcd) Get(s *service.Service) error

Get retrieves a service per the Declare interface in Herald

func (*Etcd) Init

func (e *Etcd) Init() error

About

Is the etcd implementation for herald declare.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages