datastructs

package
v0.0.0-...-c4fa36d Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data interface {
	Valid() bool
}

type Item

type Item map[string]interface{}

func (*Item) Valid

func (i *Item) Valid() bool

type Request

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

func NewRequest

func NewRequest(r *http.Request, depth uint32) *Request

func (*Request) Depth

func (req *Request) Depth() uint32

* depth计算方法

下载其首次请求A 并接受相应经过分析器分析后找到新的地址并生成新的请求,B,c这两个深度为1, b,发送请求并分析后经过分析后找到新的地址D,深度为2,一个请求的深度等于他父请求的深度递增1后的结果

func (*Request) Request

func (req *Request) Request() *http.Request

func (*Request) String

func (req *Request) String() string

func (*Request) Valid

func (req *Request) Valid() bool

type Response

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

func NewResponse

func NewResponse(rep *http.Response, depth uint32) *Response

func (*Response) Depth

func (r *Response) Depth() uint32

func (*Response) Response

func (r *Response) Response() *http.Response

func (*Response) Valid

func (r *Response) Valid() bool

Jump to

Keyboard shortcuts

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