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 (*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
Click to show internal directories.
Click to hide internal directories.