register

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInstance

func AddInstance(client *etcd.Client, i *Instance) error

func AddService

func AddService(client *etcd.Client, s *Service) error

func FindAndRemoveInstance added in v0.3.0

func FindAndRemoveInstance(client *etcd.Client, cluster, prefix, name string) error

func RemoveInstance

func RemoveInstance(client *etcd.Client, i *Instance) error

func RemoveService

func RemoveService(client *etcd.Client, s *Service) error

Types

type Instance

type Instance struct {
	Name    string
	Backend string
	Service string
	Proto   string
	Cluster string
	Ip      string
	Listen  string
	Prefix  string
}

type Service

type Service struct {
	Name    string
	Proto   string
	Cluster string
	Listen  string
	Backend string
	Hosts   []string
	Prefix  string // prefix for etcd key
}

Jump to

Keyboard shortcuts

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