http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOption

func CheckOption(opt protos.HTTPOption) error

CheckOption check protos.HTTPOption.

func Execute

func Execute(opt protos.HTTPOption) error

Execute do http attack

func GetOptionHeader

func GetOptionHeader(opt protos.HTTPOption) http.Header

GetOptionHeader get header from option

Types

type Job

type Job struct {
	protos.HTTPOption
	// contains filtered or unexported fields
}

func NewJob

func NewJob(index int, opt protos.HTTPOption, ch <-chan struct{}) *Job

func (*Job) Inc

func (j *Job) Inc()

Inc ...

func (*Job) Next

func (j *Job) Next() bool

Next enable next

func (*Job) Request

func (j *Job) Request() *http.Request

Request

func (*Job) Run

func (j *Job) Run()

Run start a job

type Manager

type Manager struct {
	protos.HTTPOption
	sync.Mutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager(opt protos.HTTPOption) *Manager

NewManager new a http attack manager

Jump to

Keyboard shortcuts

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