test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestObject

type TestObject struct {
	objectstorage.StorableObjectFlags
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTestObject

func NewTestObject(id string, value uint32) *TestObject

func (*TestObject) ObjectStorageKey

func (testObject *TestObject) ObjectStorageKey() []byte

func (*TestObject) ObjectStorageValue

func (testObject *TestObject) ObjectStorageValue() []byte

func (*TestObject) UnmarshalObjectStorageValue

func (testObject *TestObject) UnmarshalObjectStorageValue(data []byte) (consumedBytes int, err error)

func (*TestObject) Update

func (testObject *TestObject) Update(object objectstorage.StorableObject)

type ThreeLevelObj

type ThreeLevelObj struct {
	objectstorage.StorableObjectFlags
	// contains filtered or unexported fields
}

ThreeLevelObj is an object stored on a 3 partition chunked object storage. ID3 corresponds to ThreeLevelObj's value.

func NewThreeLevelObj

func NewThreeLevelObj(id1 byte, id2 byte, id3Value byte) *ThreeLevelObj

func (ThreeLevelObj) ObjectStorageKey

func (t ThreeLevelObj) ObjectStorageKey() []byte

func (ThreeLevelObj) ObjectStorageValue

func (t ThreeLevelObj) ObjectStorageValue() []byte

func (ThreeLevelObj) UnmarshalObjectStorageValue

func (t ThreeLevelObj) UnmarshalObjectStorageValue(data []byte) (int, error)

func (ThreeLevelObj) Update

func (t ThreeLevelObj) Update(object objectstorage.StorableObject)

Jump to

Keyboard shortcuts

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