Documentation ¶
Index ¶
- type Client
- func (store *Client) Close() error
- func (store *Client) Delete(ctx context.Context, key kvstore.Key) (err error)
- func (store *Client) Get(ctx context.Context, key kvstore.Key) (_ kvstore.Value, err error)
- func (store *Client) MigrateToLatest(ctx context.Context) error
- func (store *Client) Put(ctx context.Context, key kvstore.Key, value kvstore.Value) (err error)
- func (store *Client) Range(ctx context.Context, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Items []kvstore.Item ForceError int CallCount struct { Get int Put int Delete int Close int Range int } // contains filtered or unexported fields }
Client implements in-memory key value store.
func (*Client) MigrateToLatest ¶
MigrateToLatest pretends to migrate to latest db schema version.
Click to show internal directories.
Click to hide internal directories.