loadgen

package
v0.0.0-...-63bff7e Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(pset ParamSet) (lib.Generator, error)

NewGenerator 会新建一个载荷发生器。

Types

type ParamSet

type ParamSet struct {
	Caller     lib.Caller           // 调用器。
	TimeoutNS  time.Duration        // 响应超时时间,单位:纳秒。
	LPS        uint32               // 每秒载荷量。
	DurationNS time.Duration        // 负载持续时间,单位:纳秒。
	ResultCh   chan *lib.CallResult // 调用结果通道。
}

ParamSet 代表了载荷发生器参数的集合。

func (*ParamSet) Check

func (pset *ParamSet) Check() error

Check 会检查当前值的所有字段的有效性。 若存在无效字段则返回值非nil。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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