etcdstore

package
v0.0.0-...-b08f40d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GangwayKeyPrefix is the etcd key prefix
	GangwayKeyPrefix = "/gangway"

	// GangwayDefinitionsKey is the etcd key for all definitions
	GangwayDefinitionsKey = fmt.Sprintf("%s/%s", GangwayKeyPrefix, "definitions")
)

Functions

This section is empty.

Types

type Store

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

Store implements store.Store for interacting with etcd

func NewStore

func NewStore(endpoints []string) (*Store, error)

NewStore starts a storage interface against etcd endpoints

func (*Store) AddDefinition

func (s *Store) AddDefinition(d data.Definition) error

AddDefinition implements store.Store

func (*Store) RetrieveDefinition

func (s *Store) RetrieveDefinition(label string) (data.Definition, error)

RetrieveDefinition retrieves a definition by its label from etcd

func (*Store) RetrieveDefinitions

func (s *Store) RetrieveDefinitions() ([]data.Definition, error)

RetrieveDefinitions implements store.Store

Jump to

Keyboard shortcuts

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