worker

package
v0.0.0-...-78262f5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenUrl

func OpenUrl(url string) error

用默认浏览器打开指定URL

func Process

func Process(control *tools.ControlData, data runnerHttp.HarRequestType, sendChan chan<- string)

func Request

func Request(p runnerHttp.HarRequestType)

Types

type NullWriter

type NullWriter int

func (NullWriter) Write

func (NullWriter) Write([]byte) (int, error)

type RawWorkData

type RawWorkData struct {
	C            int                       `json:"c"`              //并发数
	N            int                       `json:"n"`              //循环次数
	MaxRunTime   int                       `json:"t"`              //最大运行时间
	Target_id    string                    `json:"target_id"`      //唯一标识
	LogType      int                       `json:"log_type"`       //日志标识
	ReportTime   int                       `json:"report_time"`    //进度汇报
	TestDataPath string                    `json:"test_data_path"` //测试数据路径
	Data         runnerHttp.HarRequestType //请求数据
}

Jump to

Keyboard shortcuts

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