Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigTypeJson = "jsonReader"
Variables ¶
View Source
var AvailableConfigReader = make(map[string]ConfigReader)
Functions ¶
This section is empty.
Types ¶
type ConfigReader ¶
ConfigReader is the interface that abstracts different config reader implementations.
func NewConfigReader ¶
func NewConfigReader(config []byte, configType string) (reader ConfigReader, err error)
NewConfigReader is the factory method of the ConfigReader.
type CsvConf ¶
type CsvConf struct {
Path string `json:"path"`
Delimiter string `json:"delimiter"`
SkipFirstLine bool `json:"skip_first_line"`
Vars map[string]Tag `json:"vars"` // "0":"name", "1":"city","2":"team"
SkipEmptyLine bool `json:"skip_empty_line"`
AllowQuota bool `json:"allow_quota"`
Order string `json:"order"`
}
func (*CsvConf) UnmarshalJSON ¶
type JsonReader ¶
type JsonReader struct {
ReqCount *int `json:"request_count"`
IterCount *int `json:"iteration_count"`
LoadType string `json:"load_type"`
Duration int `json:"duration"`
TimeRunCount timeRunCount `json:"manual_load"`
Steps []step `json:"steps"`
Output string `json:"output"`
Proxy string `json:"proxy"`
Envs map[string]interface{} `json:"env"`
Data map[string]CsvConf `json:"data"`
Debug bool `json:"debug"`
SamplingRate *int `json:"sampling_rate"`
EngineMode string `json:"engine_mode"`
}
func (*JsonReader) CreateHammer ¶
func (j *JsonReader) CreateHammer() (h types.Hammer, err error)
func (*JsonReader) Init ¶
func (j *JsonReader) Init(jsonByte []byte) (err error)
func (*JsonReader) UnmarshalJSON ¶
func (j *JsonReader) UnmarshalJSON(data []byte) error
type RegexCaptureConf ¶
type RemoteMultipartError ¶
type RemoteMultipartError struct {
// contains filtered or unexported fields
}
func (RemoteMultipartError) Error ¶
func (nf RemoteMultipartError) Error() string
func (RemoteMultipartError) Unwrap ¶
func (nf RemoteMultipartError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.