input

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// HTTP defines the plain http scheme
	HTTP = "http"
	// HTTPS defines the secure http scheme
	HTTPS = "https"
	// HTTPorHTTPS defines both http and https scheme in mutual exclusion
	HTTPorHTTPS = "http|https"
	// HTTPandHTTPS defines both http and https scheme
	HTTPandHTTPS = "http&https"
)

Variables

This section is empty.

Functions

func DecomposeHost

func DecomposeHost(targets []string, methods []string, headers map[string]interface{}, paths []string, body string) chan *Target

Types

type Target

type Target struct {
	// Host is the host input on which match was found.
	Host string `json:"host,omitempty"`
	// Scheme is the scheme of the host input on which match was found (if applicable).
	Scheme string `json:"scheme,omitempty"`
	// Methods is the method of the host input on which match was found (if applicable).
	Methods []string `json:"methods,omitempty"`

	// Headers is the headers of the host input on which match was found (if applicable).
	Headers map[string]interface{} `json:"headers,omitempty"`

	// paths is the paths of the host input on which match was found (if applicable).
	Paths []string `json:"paths,omitempty"`
	// Body is the body of the host input on which match was found (if applicable).
	Body string `json:"body,omitempty"`
	// BasePath is the base path of the host input on which match was found (if applicable).
	BasePath string `json:"base-path"`
}

func NewTarget

func NewTarget(target string, methods []string, headers map[string]interface{}, paths []string, body string) *Target

func (*Target) Clone

func (target *Target) Clone() *Target

func (*Target) IsDuplicate added in v2.0.2

func (target *Target) IsDuplicate(target2 *Target) bool

IsDuplicate 判断target是否是重复的

func (*Target) NewRequest

func (target *Target) NewRequest(method, URL string) (*retryablehttp.Request, error)

Jump to

Keyboard shortcuts

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