kv

package
v1.0.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init is exported

Types

type Discovery

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

Discovery is exported

func (*Discovery) Initialize

func (s *Discovery) Initialize(uris string, heartbeat time.Duration, ttl time.Duration, discoveryOpt map[string]string) error

Initialize is exported

func (*Discovery) Prefix added in v0.4.0

func (s *Discovery) Prefix() string

Prefix returns the store prefix

func (*Discovery) Register

func (s *Discovery) Register(addr string) error

Register is exported

func (*Discovery) Store

func (s *Discovery) Store() store.Store

Store returns the underlying store used by KV discovery.

func (*Discovery) Watch

func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error)

Watch is exported

Jump to

Keyboard shortcuts

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