nullstore

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullStore

type NullStore struct {
	GetResult []byte
	GetErr    error
	SetErr    error
	DelErr    error
}

func New

func New() *NullStore

New returns a new NullStore By default Save/Delete returns no error and Get returns ErrBlobNotFound.

func (*NullStore) Delete

func (m *NullStore) Delete(ctx context.Context, set, key string) error

func (*NullStore) Get

func (m *NullStore) Get(ctx context.Context, set, key string) ([]byte, error)

func (*NullStore) Set

func (m *NullStore) Set(ctx context.Context, set, key string, val []byte) error

Jump to

Keyboard shortcuts

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