Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHTTPStatusCode ¶
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) 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
func WithTimeout ¶
func WithTimeout(t time.Duration) FastHTTPAttackerOption
type FastHTTPCheckFunc ¶
FastHTTPCheckFunc fasthttp.Response检查函数
type FastHTTPPrepareFunc ¶
FastHTTPPrepareFunc 构造fasthttp.Request的请求
Click to show internal directories.
Click to hide internal directories.