Skip to content

duckbunny/vulcand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Etcd

Is the vulcand implementation for herald.

GoDoc

vulcand

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

Usage

var (
	KVPath string = "/vulcand/backends"
	TTL    int    = 15
	// Title for specifying herald in flags
	Title string = "vulcand"
)

func BackendPath

func BackendPath(s *service.Service) string

func BasePath

func BasePath(s *service.Service) string

func Register

func Register()

Register this herald with consul

func ServerPath

func ServerPath(s *service.Service) string

func Url

func Url(s *service.Service) string

type Backend

type Backend struct {
	Type string `json:"Type"`
}

type Server

type Server struct {
	URL string `json:"URL"`
}

type Vulcand

type Vulcand struct {
	*etcd.Etcd
}

func New

func New() *Vulcand

func (*Vulcand) Start

func (v *Vulcand) Start(s *service.Service) error

func (*Vulcand) Stop

func (v *Vulcand) Stop(s *service.Service) error

About

Is the vulcand implementation for herald.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages