mockfragment

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFragment

type MockFragment struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *MockFragment

func (*MockFragment) Close

func (f *MockFragment) Close() error

func (*MockFragment) Compaction

func (f *MockFragment) Compaction() (bool, error)

func (*MockFragment) Delete

func (f *MockFragment) Delete(key string)

func (*MockFragment) Destroy

func (f *MockFragment) Destroy() error

func (*MockFragment) Fill

func (f *MockFragment) Fill()

func (*MockFragment) Get

func (f *MockFragment) Get(key string) interface{}

func (*MockFragment) Length

func (f *MockFragment) Length() int

func (*MockFragment) Move

func (*MockFragment) Name

func (f *MockFragment) Name() string

func (*MockFragment) Put

func (f *MockFragment) Put(key string, value interface{})

func (*MockFragment) Stats

func (f *MockFragment) Stats() storage.Stats

Jump to

Keyboard shortcuts

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