Version: v1.0.0 Latest Latest

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

Go to latest
Published: Dec 17, 2018 License: GPL-3.0 Imports: 8 Imported by: 4




This section is empty.


This section is empty.


This section is empty.


type Config

type Config struct {
	Generator struct {
		Name string
		Info interface{} // this structure is not used in config, it is passed to generators
	Token    string
	Messages []map[string]interface{}

Config is a configuration structure for I1820/lg

type Instance

type Instance struct {
	R core.Runner
	G generators.Generator
	// contains filtered or unexported fields

Instance represents a load generator instance. Each instance has a runner with a generator that generates messages. R and G are public and consumers can use their public methods in their advanced use cases.

func NewInstance

func NewInstance(config Config, rate time.Duration, destination string) (*Instance, error)

NewInstance creates new load generator instance with given configuration

func (*Instance) Run

func (i *Instance) Run()

Run runs the instance (please note that runners run in new go routine by default)

func (*Instance) Stop

func (i *Instance) Stop()

Stop stops the instance

Jump to

Keyboard shortcuts

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