Documentation ¶
Index ¶
Constants ¶
View Source
const (
EmptyTag = "__EMPTY__"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postprocessor ¶
type Preprocessor ¶
type Request ¶ added in v0.5.18
type Request struct { Method string Headers map[string]string Tag string Body *string Name string URI string Preprocessor Preprocessor Postprocessors []Postprocessor Templater Templater Sleep time.Duration }
func (*Request) GetHeaders ¶ added in v0.5.18
type RequestParts ¶
type Scenario ¶ added in v0.5.18
type ScenarioGun ¶ added in v0.5.22
type ScenarioGun struct {
// contains filtered or unexported fields
}
func NewHTTP2Gun ¶
NewHTTP2Gun return simple HTTP/2 gun that can shoot sequentially through one connection.
func NewHTTPGun ¶
func NewHTTPGun(conf phttp.GunConfig, answLog *zap.Logger) *ScenarioGun
func (*ScenarioGun) Bind ¶ added in v0.5.22
func (g *ScenarioGun) Bind(aggregator netsample.Aggregator, deps core.GunDeps) error
func (*ScenarioGun) Close ¶ added in v0.5.22
func (g *ScenarioGun) Close() error
func (*ScenarioGun) Shoot ¶ added in v0.5.22
func (g *ScenarioGun) Shoot(ammo *Scenario)
Shoot is thread safe if Do and Connect hooks are thread safe.
type SourceStorage ¶ added in v0.5.18
Click to show internal directories.
Click to hide internal directories.