memory

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryRepository

type InMemoryRepository struct {
	// contains filtered or unexported fields
}

func NewInMemoryRepository

func NewInMemoryRepository() *InMemoryRepository

func (*InMemoryRepository) Delete

func (i *InMemoryRepository) Delete(ctx context.Context, prefix string, key string) error

func (*InMemoryRepository) Get

func (i *InMemoryRepository) Get(ctx context.Context, prefix string, key string) ([]byte, error)

func (*InMemoryRepository) GetAll

func (i *InMemoryRepository) GetAll(ctx context.Context, prefix string) ([][]byte, error)

func (*InMemoryRepository) Put

func (i *InMemoryRepository) 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