fastattacker

package module
v0.0.0-...-95420b2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHTTPStatusCode

func CheckHTTPStatusCode(res *fasthttp.Response) error

Types

type FastHTTPAttacker

type FastHTTPAttacker struct {
	// contains filtered or unexported fields
}

FastHTTPAttacker Attacker接口的fasthttp实现

func NewFastHTTPAttacker

func NewFastHTTPAttacker(name string) *FastHTTPAttacker

func (*FastHTTPAttacker) Apply

func (fa *FastHTTPAttacker) Apply(opts ...FastHTTPAttackerOption)

func (*FastHTTPAttacker) Fire

func (fa *FastHTTPAttacker) Fire(ctx context.Context) error

func (*FastHTTPAttacker) Name

func (fa *FastHTTPAttacker) Name() string

type FastHTTPAttackerOption

type FastHTTPAttackerOption func(*FastHTTPAttacker)

FastHTTPAttackerOption FastHTTPAttacker的配置项

func WithCheckFunc

func WithCheckFunc(checks ...FastHTTPCheckFunc) FastHTTPAttackerOption

func WithClient

func WithClient(client *fasthttp.Client) FastHTTPAttackerOption

func WithPrepareFunc

func WithPrepareFunc(prepare FastHTTPPrepareFunc) FastHTTPAttackerOption

type FastHTTPCheckFunc

type FastHTTPCheckFunc func(*fasthttp.Response) error

FastHTTPCheckFunc fasthttp.Response检查函数

type FastHTTPPrepareFunc

type FastHTTPPrepareFunc func(*fasthttp.Request) error

FastHTTPPrepareFunc 构造fasthttp.Request的请求

Jump to

Keyboard shortcuts

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