LoadGenerator

package module
v0.0.0-...-70b3758 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

LoadGenerator

负载测试

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 // 调用结果通道。
}

func (*ParamSet) Check

func (pset *ParamSet) Check() error

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

Directories

Path Synopsis
helper
ds
Show the specified directory structure
Show the specified directory structure
log
log/field
generated by log_xfields_generator -input /home/haolin/golang/example.v2/src/LoadGenerator/helper/log/field -output /home/haolin/golang/example.v2/src/LoadGenerator/helper/log/field generation time: 2016-12-29T12:10:06.552 DO NOT EDIT!!
generated by log_xfields_generator -input /home/haolin/golang/example.v2/src/LoadGenerator/helper/log/field -output /home/haolin/golang/example.v2/src/LoadGenerator/helper/log/field generation time: 2016-12-29T12:10:06.552 DO NOT EDIT!!
pds
Show the dependency structure of specified package
Show the dependency structure of specified package

Jump to

Keyboard shortcuts

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