consul

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(addrs []string) registry.Registry

Types

type ConsulRegistry

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

func (*ConsulRegistry) Close

func (e *ConsulRegistry) Close()

func (*ConsulRegistry) Deregister

func (c *ConsulRegistry) Deregister(node *registry.Node) error

func (*ConsulRegistry) GetService

func (c *ConsulRegistry) GetService(name string) (*registry.Service, error)

func (*ConsulRegistry) ListServices

func (c *ConsulRegistry) ListServices() ([]*registry.Service, error)

func (*ConsulRegistry) Register

func (c *ConsulRegistry) Register(node *registry.Node) error

func (*ConsulRegistry) Watch

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

Jump to

Keyboard shortcuts

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