bench

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadGzipFile

func ReadGzipFile(f string) ([]byte, error)

func WriteGzipFile

func WriteGzipFile(f string, data []byte) error

Types

type MockPutter

type MockPutter struct {
	Keep bool
	Puts []PutInputCopy

	JsonDump  bool
	JsonCheck bool
	Trees     map[string]string
}

func (*MockPutter) CompareWithJson

func (m *MockPutter) CompareWithJson(jsonFile string) error

func (*MockPutter) DumpJson

func (m *MockPutter) DumpJson(jsonFile string) error

func (*MockPutter) Put

func (m *MockPutter) Put(_ context.Context, input *storage.PutInput) error

func (*MockPutter) Sort

func (m *MockPutter) Sort()

type PutInputCopy

type PutInputCopy struct {
	Val string // tree serialized to collapsed format
	Key string

	StartTime       time.Time
	EndTime         time.Time
	SpyName         string
	SampleRate      uint32
	Units           metadata.Units
	AggregationType metadata.AggregationType
	ValTree         *tree.Tree
}

Jump to

Keyboard shortcuts

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