Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorStoreAccess = errors.New("store", 1, "error accessing store")
Functions ¶
Types ¶
type FailingMethod ¶
type FailingMethod string
const ( Get FailingMethod = "get" Has FailingMethod = "has" Set FailingMethod = "set" Delete FailingMethod = "delete" Iterator FailingMethod = "iterator" ReverseIterator FailingMethod = "reverseIterator" )
type StoreService ¶
type StoreService struct {
// contains filtered or unexported fields
}
func FailingStore ¶
func FailingStore(failingMethod FailingMethod, original types.KVStore) *StoreService
FailingStore returns a store.KVStoreService that can be used to test specific errors within collections.
func (StoreService) NewStoreContext ¶
func (s StoreService) NewStoreContext() context.Context
func (StoreService) OpenKVStore ¶
func (s StoreService) OpenKVStore(_ context.Context) store.KVStore
Click to show internal directories.
Click to hide internal directories.