Documentation ¶
Index ¶
- type MemoryKeyValueStore
- func (kvs *MemoryKeyValueStore) Close() error
- func (kvs *MemoryKeyValueStore) Get(key string) (io.Reader, error)
- func (kvs *MemoryKeyValueStore) Lock(key string) error
- func (kvs *MemoryKeyValueStore) Open() error
- func (kvs *MemoryKeyValueStore) Set(key string, reader io.Reader) error
- func (kvs *MemoryKeyValueStore) Unlock(key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryKeyValueStore ¶
type MemoryKeyValueStore struct {
// contains filtered or unexported fields
}
MemoryKeyValueStore is a KV store that stores []byte(s)
func (*MemoryKeyValueStore) Close ¶
func (kvs *MemoryKeyValueStore) Close() error
Close MemoryKeyValueStore, this is a no-op
func (*MemoryKeyValueStore) Get ¶
func (kvs *MemoryKeyValueStore) Get(key string) (io.Reader, error)
Get at Key and copy to io.Reader
func (*MemoryKeyValueStore) Lock ¶
func (kvs *MemoryKeyValueStore) Lock(key string) error
func (*MemoryKeyValueStore) Open ¶
func (kvs *MemoryKeyValueStore) Open() error
Open MemoryKeyValueStore, this is a no-op
func (*MemoryKeyValueStore) Set ¶
func (kvs *MemoryKeyValueStore) Set(key string, reader io.Reader) error
Set at Key, the contents Read from io.Reader; contents not set if errored
func (*MemoryKeyValueStore) Unlock ¶
func (kvs *MemoryKeyValueStore) Unlock(key string) error
Click to show internal directories.
Click to hide internal directories.