Documentation ¶
Index ¶
- type Client
- func (store *Client) Close() error
- func (store *Client) Delete(ctx context.Context, key storage.Key) (err error)
- func (store *Client) Get(ctx context.Context, key storage.Key) (_ storage.Value, err error)
- func (store *Client) GetAll(ctx context.Context, keys storage.Keys) (_ storage.Values, err error)
- func (store *Client) Iterate(ctx context.Context, opts storage.IterateOptions, ...) (err error)
- func (store *Client) List(ctx context.Context, first storage.Key, limit int) (_ storage.Keys, err error)
- func (store *Client) Put(ctx context.Context, key storage.Key, value storage.Value) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Items []storage.ListItem ForceError int CallCount struct { Get int Put int List int GetAll int ReverseList int Delete int Close int Iterate int } // contains filtered or unexported fields }
Client implements in-memory key value store
func (*Client) Iterate ¶
func (store *Client) Iterate(ctx context.Context, opts storage.IterateOptions, fn func(context.Context, storage.Iterator) error) (err error)
Iterate iterates over items based on opts
Click to show internal directories.
Click to hide internal directories.