loadgen

package
v1.1.1-0...-b92a7c3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryCommitSize = 1 +
		6 +
		32 +
		1 +
		32 +
		64 // sig,
	EntryHeaderSize = 1 +
		32 +
		2 // total len
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BurstLoadConfig

type BurstLoadConfig struct {
	NbEntries int `mapstructure:"nbEntries"`
}

type ConstantLoadConfig

type ConstantLoadConfig struct {
	EPS float64 `mapstructure:"eps"`
}

type LoadConfig

type LoadConfig struct {
	Type           string
	ChainIDsStr    []string
	EsAddressStr   string
	EntrySizeRange common.IntRange
	Params         map[string]interface{}
}

type LoadGenerator

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

func NewLoadGenerator

func NewLoadGenerator() *LoadGenerator

func (*LoadGenerator) Run

func (lg *LoadGenerator) Run(config LoadConfig) error

func (*LoadGenerator) Stop

func (lg *LoadGenerator) Stop()

type RandomEntryComposer

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

func NewRandomEntryComposer

func NewRandomEntryComposer(chainIDsStr []string,
	esAddress factom.EsAddress,
	entrySizeRange common.IntRange) (*RandomEntryComposer, error)

func (*RandomEntryComposer) Compose

func (comp *RandomEntryComposer) Compose() ([]byte, []byte, error)

Jump to

Keyboard shortcuts

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