inttest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Indicates that we are passing in a limited key space to use for the id field in each record
	// that we generate.
	LimitedKeySpace = iota
	// Indicated that we are passing in specific records in specific order that we want to have the
	// Writers use for the test.
	SpecificRecords
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int64

The mode in which we will run the test

type PerfConfigs

type PerfConfigs struct {
	// contains filtered or unexported fields
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(cfg ReaderConfig) *Reader

func (*Reader) Run

func (r *Reader) Run()

type ReaderConfig

type ReaderConfig struct {
	// contains filtered or unexported fields
}

type RecordSpec

type RecordSpec struct {
	Id             string
	CollectionTime int64
}

type ResourceManager

type ResourceManager struct {
	// contains filtered or unexported fields
}

func NewResourceManager

func NewResourceManager(testParentDir string) *ResourceManager

type TRConfig

type TRConfig struct {
	// contains filtered or unexported fields
}

type TestConfigs

type TestConfigs struct {
	PerfNumReaders   int
	PerfWriters      int
	PerfWriterWrites int
}

type TestRunner

type TestRunner struct {
	StartTime int64
	EndTime   int64
	// contains filtered or unexported fields
}

func NewTestRunner

func NewTestRunner(ctx context.Context, cancel context.CancelFunc, wg *sync.WaitGroup, cfg TRConfig) *TestRunner

func (*TestRunner) RunTest

func (tr *TestRunner) RunTest()

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(cfg WorkerConfig) *Worker

type WorkerConfig

type WorkerConfig struct {
	Id       int
	IMDS     *inmemdatastore.InMemDataStore
	Wg       *sync.WaitGroup
	KeySpace []string
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(cfg WriterConfig) *Writer

func (*Writer) Start

func (w *Writer) Start()

type WriterConfig

type WriterConfig struct {
	SpecificRecords []map[string]interface{}
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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