consul

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: Apache-2.0 Imports: 9 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCmdFlags added in v0.3.0

func AddCmdFlags(f *flag.FlagSet)

func Help added in v0.3.0

func Help() string

Types

type Consul

type Consul struct {
	// contains filtered or unexported fields
}

func New added in v0.3.0

func New() *Consul

func (*Consul) CacheCreate added in v0.3.0

func (c *Consul) CacheCreate() bool

CacheCreate()

func (*Consul) CacheDelete added in v0.3.0

func (c *Consul) CacheDelete(id string)

CacheDelete()

func (*Consul) CacheIsValid added in v0.3.2

func (c *Consul) CacheIsValid(id string) bool

func (*Consul) CacheLoad added in v0.3.0

func (c *Consul) CacheLoad(host, serviceIdPrefix string) error

Initialize the service cache

func (*Consul) CacheLookup added in v0.3.0

func (c *Consul) CacheLookup(id string) *registry.Service

CacheLookup()

func (*Consul) CacheMark added in v0.3.0

func (c *Consul) CacheMark(id string)

CacheMark()

Mark the service ID as valid

func (*Consul) CacheProcessDeregister added in v0.3.2

func (c *Consul) CacheProcessDeregister(id string)

CacheProcessDeregister()

Calculate the validity of the entry

func (*Consul) Deregister

func (c *Consul) Deregister()

Deregister()

Deregister services that no longer exist

func (*Consul) Register

func (c *Consul) Register(service *registry.Service)

Jump to

Keyboard shortcuts

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