storage

package
v2.0.0-beta.1+incompat... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Item      []byte
	Items     [][]byte
	PutErr    error
	GetErr    error
	ListErr   error
	DeleteErr error
}

func (Fake) Delete

func (s Fake) Delete(ctx context.Context, prefix string, key string) error

func (Fake) Get

func (s Fake) Get(ctx context.Context, prefix string, key string) ([]byte, error)

func (Fake) GetAll

func (s Fake) GetAll(ctx context.Context, prefix string) ([][]byte, error)

func (Fake) Put

func (s Fake) Put(ctx context.Context, prefix string, key string, value []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL