mockfragment

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 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 (f *MockFragment) Move(part *partitions.Partition, name string, owners []discovery.Member) error

func (*MockFragment) Name

func (f *MockFragment) Name() string

func (*MockFragment) Put

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

func (*MockFragment) Result added in v0.5.0

func (f *MockFragment) Result() map[partitions.Kind]map[uint64]Result

func (*MockFragment) Stats

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

type Result added in v0.5.0

type Result struct {
	Name   string
	Owners []discovery.Member
}

Jump to

Keyboard shortcuts

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