job

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptRawProxyStr added in v0.2.0

func AdaptRawProxyStr(prxStr string, prxProtocol string) (parsedURL *url.URL, err error)

func EvaluateProxyList

func EvaluateProxyList(prxURLs []*url.URL, cfg *PListEvanJobCfg, ch chan client.Result) error

Types

type JobMetrics added in v0.3.0

type JobMetrics struct {
	Duration             time.Duration `json:"Duration"`
	UniqueExitNodesIPCnt int           `json:"UniqueExitNodesIPCnt"`
	ReqsCnt              int           `json:"ReqsCnt"`
	RespCnt              int           `json:"RespCnt"`
}

func (JobMetrics) MarshalJSON added in v0.3.0

func (self JobMetrics) MarshalJSON() ([]byte, error)

type PListEvanJobCfg

type PListEvanJobCfg struct {
	MaxConcurrency int           `json:"MaxConcurrency"`
	TargetURL      url.URL       `json:"TargetURL"`
	TimeOut        time.Duration `json:"TimeOut"`
	Transport      string        `json:"Transport"`
	Debug          bool          `json:"-"`
}

func (PListEvanJobCfg) MarshalJSON added in v0.3.0

func (self PListEvanJobCfg) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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