Documentation ¶
Index ¶
- Variables
- func StoreTest(s store.S, storeTiming time.Duration, t *testing.T)
- type MockDB
- func (s *MockDB) Close()
- func (s *MockDB) Delete(key model.Key) (store.OwnableItem, error)
- func (s *MockDB) Get(key model.Key) (store.OwnableItem, error)
- func (s *MockDB) GetAll(bucket string) (map[string]store.OwnableItem, error)
- func (s *MockDB) Ping() error
- func (s *MockDB) Push(key model.Key, item store.OwnableItem) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GenericTestKeyPair = store.KeyItemPairRequest{ Key: model.Key{ Bucket: "world", ID: "earth", }, OwnableItem: store.OwnableItem{ Item: model.Item{ Identifier: "earth", Data: map[string]interface{}{ "year": float64(1967), "words": []interface{}{"What", "a", "Wonderful", "World"}, }, TTL: 3, }, Owner: "Louis Armstrong", }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.