testing

package
v1.11.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStore

type MemStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

MemStore is an implementation of CheckpointStore interface which stores checkpoint in memory.

func NewMemStore

func NewMemStore() *MemStore

NewMemStore returns an instance of MemStore

func (*MemStore) Delete

func (mstore *MemStore) Delete(key string) error

Delete deletes data from the store

func (*MemStore) List

func (mstore *MemStore) List() ([]string, error)

List returns all the keys from the store

func (*MemStore) Read

func (mstore *MemStore) Read(key string) ([]byte, error)

Read returns data read from store

func (*MemStore) Write

func (mstore *MemStore) Write(key string, data []byte) error

Write writes the data to the store

Directories

Path Synopsis
example_checkpoint_formats
v1

Jump to

Keyboard shortcuts

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