etcd

package
v0.0.0-...-8a04a08 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry(prefix string, addrs []string) registry.Registry

Types

type EtcdRegistry

type EtcdRegistry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*EtcdRegistry) Close

func (e *EtcdRegistry) Close()

func (*EtcdRegistry) Deregister

func (e *EtcdRegistry) Deregister(node *registry.Node) error

func (*EtcdRegistry) GetService

func (e *EtcdRegistry) GetService(name string) (*registry.Service, error)

func (*EtcdRegistry) ListServices

func (e *EtcdRegistry) ListServices() ([]*registry.Service, error)

func (*EtcdRegistry) Register

func (e *EtcdRegistry) Register(node *registry.Node) error

func (*EtcdRegistry) Watch

func (e *EtcdRegistry) Watch() (registry.Watcher, error)

Jump to

Keyboard shortcuts

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