Documentation
¶
Index ¶
- Variables
- func TestStore(t *testing.T, testStore store.TestStore, scope dscope.Scope, wg *pr2.WaitGroup)
- type Def
- type Key
- type New
- type ReadPolicy
- type Store
- func (s *Store) Delete(keys []Key) (err error)
- func (s *Store) Exists(key Key) (bool, error)
- func (s *Store) ID() (StoreID, error)
- func (s *Store) IterAllKeys(fn func(Key) error) (err error)
- func (s *Store) IterKeys(ns key.Namespace, fn func(Key) error) (err error)
- func (s *Store) Name() string
- func (s *Store) Read(key Key, fn func(sb.Stream) error) (err error)
- func (s *Store) Write(ns key.Namespace, stream sb.Stream, options ...WriteOption) (res store.WriteResult, err error)
- type StoreID
- type WriteOption
- type WritePolicy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIgnore = store.ErrIgnore Break = store.Break ErrKeyNotFound = store.ErrKeyNotFound ErrKeyNotMatch = store.ErrKeyNotMatch ErrClosed = store.ErrClosed )
Functions ¶
Types ¶
type New ¶
type New func( context.Context, store.Store, store.Store, ReadPolicy, WritePolicy, ) (*Store, error)
type ReadPolicy ¶
type ReadPolicy uint8
const ( ReadThrough ReadPolicy = iota ReadThroughCaching ReadAround )
func (ReadPolicy) String ¶
func (i ReadPolicy) String() string
type Store ¶
type Store struct { Upstream store.Store Backing store.Store ReadPolicy ReadPolicy WritePolicy WritePolicy // contains filtered or unexported fields }
type WriteOption ¶
type WriteOption = store.WriteOption
type WritePolicy ¶
type WritePolicy uint8
const ( WriteThrough WritePolicy = iota WriteAround )
func (WritePolicy) String ¶
func (i WritePolicy) String() string
Click to show internal directories.
Click to hide internal directories.