vulcand

package module
v0.0.0-...-bb3ae8f Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: LGPL-3.0 Imports: 12 Imported by: 0

README

###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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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

Types

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
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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