Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewEtcdStorage ¶
func NewLocalStorage ¶
func NewLocalStorage() *keyValueStorage
func NewRedisStorage ¶
Types ¶
type EtcdIndex ¶
type EtcdIndex struct { Storage *EtcdStorageDriver Name string }
EtcdIndex implements KeyValueIndex on Etcd.
type EtcdStorageDriver ¶
type EtcdStorageDriver struct {
// contains filtered or unexported fields
}
func (*EtcdStorageDriver) Index ¶
func (d *EtcdStorageDriver) Index(name string) keyValueIndex
Index is called initially to create a helper for accessing an index
func (*EtcdStorageDriver) Lookup ¶
func (d *EtcdStorageDriver) Lookup(userID string) (string, bool, error)
Lookup returns the json previously written with Set().
func (*EtcdStorageDriver) Path ¶
func (d *EtcdStorageDriver) Path(index, name string) string
func (*EtcdStorageDriver) Set ¶
func (d *EtcdStorageDriver) Set(userID, json string) error
Set writes the json with data
Click to show internal directories.
Click to hide internal directories.