Documentation ¶
Overview ¶
Package crawlerx @Author bcy2007 2023/7/13 11:10
Package crawlerx @Author bcy2007 2023/7/12 17:31
Package crawlerx @Author bcy2007 2023/7/12 16:20
Package crawlerx @Author bcy2007 2023/7/12 16:31
Package crawlerx @Author bcy2007 2023/7/13 11:32
Package crawlerx @Author bcy2007 2023/7/12 17:42
Package crawlerx @Author bcy2007 2023/7/12 16:56
Package crawlerx @Author bcy2007 2023/8/1 11:09
Package crawlerx @Author bcy2007 2023/7/17 11:01
Package crawlerx @Author bcy2007 2023/7/14 10:44
Package crawlerx @Author bcy2007 2023/7/14 10:31
Package crawlerx @Author bcy2007 2023/7/14 11:07
Package crawlerx @Author bcy2007 2023/7/12 16:42
Package crawlerx @Author bcy2007 2023/11/1 10:16
Package crawlerx @Author bcy2007 2023/7/12 16:19
Package crawlerx @Author bcy2007 2023/7/13 11:57
Package crawlerx @Author bcy2007 2023/7/12 17:40
Index ¶
- Variables
- func BrowserEachEvent(browser *rod.Browser, sessionID proto.TargetSessionID, ...) func()
- func EvalOnPage(page *rod.Page, evalJs string) (*proto.RuntimeRemoteObject, error)
- func GetSortedQuery(rawQuery string) (query []string, err error)
- func NewPageScreenShot(targetUrl string, opts ...ConfigOpt) (code string, err error)
- func StartCrawler(url string, opts ...ConfigOpt) (chan ReqInfo, error)
- func StartCrawlerTest(url string, opts ...ConfigOpt) (chan ReqInfo, error)
- func StringArrayContains(array []string, element string) bool
- func StringArrayCover(array []string, element string) (bool, string)
- func StringPrefixList(origin string, prefixes []string) bool
- func StringSuffixList(s string, suffixes []string) bool
- func TargetUrlCheck(targetUrl string, proxy *url.URL) (string, error)
- type BaseConfig
- type BrowserConfig
- type BrowserInfo
- type BrowserManager
- type BrowserStarter
- func (starter *BrowserStarter) ActionOnPage(page *rod.Page) error
- func (starter *BrowserStarter) GetFormFill(element *rod.Element) string
- func (starter *BrowserStarter) GetUploadFile(element *rod.Element) string
- func (starter *BrowserStarter) HttpPostFile(element *rod.Element) error
- func (starter *BrowserStarter) Start()
- func (starter *BrowserStarter) Test()
- type Config
- type ConfigOpt
- func WithBlackList(keywords ...string) ConfigOpt
- func WithBrowserData(browserConfig *BrowserConfig) ConfigOpt
- func WithBrowserInfo(data string) ConfigOpt
- func WithConcurrent(concurrent int) ConfigOpt
- func WithContext(ctx context.Context) ConfigOpt
- func WithCookieInfo(domain, cookieInfo string) ConfigOpt
- func WithCookies(domain string, cookiesInfo map[string]string) ConfigOpt
- func WithEvalJs(target string, evalJs string) ConfigOpt
- func WithExtraWaitLoadTime(extraWaitLoadTime int) ConfigOpt
- func WithFileInput(fileInput map[string]string) ConfigOpt
- func WithFormFill(formFills map[string]string) ConfigOpt
- func WithFromPlugin(fromPlugin string) ConfigOpt
- func WithFullTimeout(timeout int) ConfigOpt
- func WithHeaderInfo(headerInfo string) ConfigOpt
- func WithHeaders(headersInfo map[string]string) ConfigOpt
- func WithIgnoreQueryName(names ...string) ConfigOpt
- func WithInvalidSuffix(suffix []string) ConfigOpt
- func WithJsResultSave(storage func(s string)) ConfigOpt
- func WithLeakless(leakless string) ConfigOpt
- func WithLocalStorage(storage map[string]string) ConfigOpt
- func WithMaxDepth(depth int) ConfigOpt
- func WithMaxUrl(maxUrl int) ConfigOpt
- func WithPageSizedWaitGroup(pageSizedWaitGroup *utils.SizedWaitGroup) ConfigOpt
- func WithPageTimeout(timeout int) ConfigOpt
- func WithPageVisitFilter(pageVisitFilter *tools.StringCountFilter) ConfigOpt
- func WithResponse(targetUrl string, response string) ConfigOpt
- func WithResultChannel(ch chan ReqInfo) ConfigOpt
- func WithResultSentFilter(resultSentFilter *tools.StringCountFilter) ConfigOpt
- func WithRuntimeID(id string) ConfigOpt
- func WithSaveToDB(b bool) ConfigOpt
- func WithScanRangeLevel(scanRange scanRangeLevel) ConfigOpt
- func WithScanRepeatLevel(scanRepeat repeatLevel) ConfigOpt
- func WithSensitiveWords(words []string) ConfigOpt
- func WithSessionStorage(storage map[string]string) ConfigOpt
- func WithSourceType(sourceType string) ConfigOpt
- func WithStartWaitGroup(waitGroup *utils.SizedWaitGroup) ConfigOpt
- func WithStealth(stealth bool) ConfigOpt
- func WithTargetUrl(targetUrl string) ConfigOpt
- func WithUChan(uChan *tools.UChan) ConfigOpt
- func WithUrlCheck(check bool) ConfigOpt
- func WithUrlTree(tree *tools.UrlTree) ConfigOpt
- func WithVue(vue bool) ConfigOpt
- func WithWhiteList(keywords ...string) ConfigOpt
- type CrawlerCore
- type CrawlerHijack
- type CrawlerHijackHandler
- type CrawlerHijackRequest
- func (hijack *CrawlerHijackRequest) Body() string
- func (hijack *CrawlerHijackRequest) Header(key string) string
- func (hijack *CrawlerHijackRequest) Headers() proto.NetworkHeaders
- func (hijack *CrawlerHijackRequest) IsNavigation() bool
- func (hijack *CrawlerHijackRequest) JSONBody() gson.JSON
- func (hijack *CrawlerHijackRequest) Method() string
- func (hijack *CrawlerHijackRequest) Req() *http.Request
- func (hijack *CrawlerHijackRequest) SetBody(obj interface{}) *CrawlerHijackRequest
- func (hijack *CrawlerHijackRequest) SetContext(ctx context.Context) *CrawlerHijackRequest
- func (hijack *CrawlerHijackRequest) Type() proto.NetworkResourceType
- func (hijack *CrawlerHijackRequest) URL() *url.URL
- type CrawlerHijackResponse
- func (hijack *CrawlerHijackResponse) Body() string
- func (hijack *CrawlerHijackResponse) Fail(reason proto.NetworkErrorReason) *CrawlerHijackResponse
- func (hijack *CrawlerHijackResponse) Headers() http.Header
- func (hijack *CrawlerHijackResponse) Payload() *proto.FetchFulfillRequest
- func (hijack *CrawlerHijackResponse) SetBody(obj interface{}) *CrawlerHijackResponse
- func (hijack *CrawlerHijackResponse) SetHeader(pairs ...string) *CrawlerHijackResponse
- type CrawlerRouter
- type HijackRequest
- type HijackResponse
- type HttpRequest
- func (request *HttpRequest) Do() error
- func (request *HttpRequest) GetRequest() error
- func (request *HttpRequest) GetUrl() string
- func (request *HttpRequest) MultiPartRequest() error
- func (request *HttpRequest) PostRequest() error
- func (request *HttpRequest) Request() error
- func (request *HttpRequest) Show() (string, error)
- type JSEval
- type JsResultSave
- type JsResults
- type OutputBody
- type OutputHeader
- type OutputRequest
- type OutputResponse
- type OutputResult
- type OutputResults
- type ReqInfo
- type RequestResult
- func (result *RequestResult) From() string
- func (result *RequestResult) Method() string
- func (result *RequestResult) RequestBody() string
- func (result *RequestResult) RequestHeaders() map[string]string
- func (result *RequestResult) RequestRaw() ([]byte, error)
- func (result *RequestResult) ResponseBody() string
- func (result *RequestResult) ResponseHeaders() map[string]string
- func (result *RequestResult) Screenshot() string
- func (result *RequestResult) StatusCode() int
- func (result *RequestResult) Type() string
- func (result *RequestResult) Url() string
- type SimpleResult
- func (simpleResult *SimpleResult) From() string
- func (simpleResult *SimpleResult) Method() string
- func (simpleResult *SimpleResult) RequestBody() string
- func (simpleResult *SimpleResult) RequestHeaders() map[string]string
- func (simpleResult *SimpleResult) RequestRaw() ([]byte, error)
- func (simpleResult *SimpleResult) ResponseBody() string
- func (simpleResult *SimpleResult) ResponseHeaders() map[string]string
- func (simpleResult *SimpleResult) Screenshot() string
- func (*SimpleResult) StatusCode() int
- func (simpleResult *SimpleResult) Type() string
- func (simpleResult *SimpleResult) Url() string
- type TestHijackRequest
- func (testHijackRequest *TestHijackRequest) Body() string
- func (testHijackRequest *TestHijackRequest) Header(key string) string
- func (testHijackRequest *TestHijackRequest) Headers() proto.NetworkHeaders
- func (testHijackRequest *TestHijackRequest) JSONBody() gson.JSON
- func (testHijackRequest *TestHijackRequest) Method() string
- func (testHijackRequest *TestHijackRequest) Req() *http.Request
- func (testHijackRequest *TestHijackRequest) Type() proto.NetworkResourceType
- func (testHijackRequest *TestHijackRequest) URL() *url.URL
Constants ¶
This section is empty.
Variables ¶
var CrawlerXExports = map[string]interface{}{ "StartCrawler": StartCrawler, "PageScreenShot": NewPageScreenShot, "browserInfo": WithBrowserInfo, "saveToDB": WithSaveToDB, "runtimeId": WithRuntimeID, "maxUrl": WithMaxUrl, "maxDepth": WithMaxDepth, "concurrent": WithConcurrent, "blacklist": WithBlackList, "whitelist": WithWhiteList, "pageTimeout": WithPageTimeout, "fullTimeout": WithFullTimeout, "extraWaitLoadTime": WithExtraWaitLoadTime, "formFill": WithFormFill, "fileInput": WithFileInput, "headers": WithHeaders, "rawHeaders": WithHeaderInfo, "cookies": WithCookies, "rawCookie": WithCookieInfo, "scanRangeLevel": WithScanRangeLevel, "scanRepeatLevel": WithScanRepeatLevel, "ignoreQueryName": WithIgnoreQueryName, "sensitiveWords": WithSensitiveWords, "leakless": WithLeakless, "localStorage": WithLocalStorage, "sessionStorage": WithSessionStorage, "invalidSuffix": WithInvalidSuffix, "stealth": WithStealth, "runtimeID": WithRuntimeID, "evalJs": WithEvalJs, "jsResultSend": WithJsResultSave, "vue": WithVue, "response": WithResponse, "sourceType": WithSourceType, "fromPlugin": WithFromPlugin, "urlCheck": WithUrlCheck, "UnLimitRepeat": unlimited, "LowRepeatLevel": lowLevel, "MediumRepeatLevel": midLevel, "HighRepeatLevel": highLevel, "ExtremeRepeatLevel": extremeLevel, "AllDomainScan": mainDomain, "SubMenuScan": subDomain, }
var RepeatLevelMap = map[int]repeatLevel{
0: unlimited,
1: lowLevel,
2: midLevel,
3: highLevel,
4: extremeLevel,
}
var ScanRangeLevelMap = map[int]scanRangeLevel{
0: mainDomain,
1: subDomain,
}
Functions ¶
func BrowserEachEvent ¶ added in v1.2.6
func BrowserEachEvent(browser *rod.Browser, sessionID proto.TargetSessionID, callbacks ...interface{}) func()
func EvalOnPage ¶ added in v1.2.7
func GetSortedQuery ¶ added in v1.2.5
func NewPageScreenShot ¶ added in v1.2.8
func StartCrawlerTest ¶ added in v1.2.7
func StringArrayContains ¶ added in v1.2.3
func StringArrayCover ¶ added in v1.2.3
func StringPrefixList ¶ added in v1.2.3
func StringSuffixList ¶ added in v1.2.3
Types ¶
type BaseConfig ¶ added in v1.2.3
type BaseConfig struct {
// contains filtered or unexported fields
}
type BrowserConfig ¶ added in v1.2.3
type BrowserConfig struct {
// contains filtered or unexported fields
}
func NewBrowserConfig ¶ added in v1.3.2
func NewBrowserConfig(exePath, wsAddress string, proxyAddress *url.URL) *BrowserConfig
type BrowserInfo ¶ added in v1.2.3
type BrowserManager ¶ added in v1.2.3
type BrowserManager struct {
// contains filtered or unexported fields
}
func NewBrowserManager ¶ added in v1.2.3
func NewBrowserManager(config *Config) *BrowserManager
func (*BrowserManager) CreateBrowserStarters ¶ added in v1.2.3
func (manager *BrowserManager) CreateBrowserStarters()
func (*BrowserManager) Start ¶ added in v1.2.3
func (manager *BrowserManager) Start()
func (*BrowserManager) Test ¶ added in v1.2.7
func (manager *BrowserManager) Test()
type BrowserStarter ¶ added in v1.2.3
type BrowserStarter struct {
// contains filtered or unexported fields
}
func NewBrowserStarter ¶ added in v1.2.3
func NewBrowserStarter(browserConfig *BrowserConfig, baseConfig *BaseConfig) *BrowserStarter
func (*BrowserStarter) ActionOnPage ¶ added in v1.2.7
func (starter *BrowserStarter) ActionOnPage(page *rod.Page) error
func (*BrowserStarter) GetFormFill ¶ added in v1.2.3
func (starter *BrowserStarter) GetFormFill(element *rod.Element) string
func (*BrowserStarter) GetUploadFile ¶ added in v1.2.3
func (starter *BrowserStarter) GetUploadFile(element *rod.Element) string
func (*BrowserStarter) HttpPostFile ¶ added in v1.2.3
func (starter *BrowserStarter) HttpPostFile(element *rod.Element) error
func (*BrowserStarter) Start ¶ added in v1.2.3
func (starter *BrowserStarter) Start()
func (*BrowserStarter) Test ¶ added in v1.2.7
func (starter *BrowserStarter) Test()
type ConfigOpt ¶ added in v1.2.3
type ConfigOpt func(*Config)
func WithBlackList ¶ added in v1.2.3
func WithBrowserData ¶ added in v1.3.2
func WithBrowserData(browserConfig *BrowserConfig) ConfigOpt
func WithBrowserInfo ¶ added in v1.2.3
func WithConcurrent ¶ added in v1.2.3
func WithContext ¶ added in v1.2.3
func WithCookieInfo ¶ added in v1.2.3
func WithCookies ¶ added in v1.2.3
func WithEvalJs ¶ added in v1.2.6
func WithExtraWaitLoadTime ¶ added in v1.2.3
func WithFileInput ¶ added in v1.2.3
func WithFormFill ¶ added in v1.2.3
func WithFromPlugin ¶ added in v1.3.1
func WithFullTimeout ¶ added in v1.2.3
func WithHeaderInfo ¶ added in v1.2.3
func WithHeaders ¶ added in v1.2.3
func WithIgnoreQueryName ¶ added in v1.2.3
func WithInvalidSuffix ¶ added in v1.2.4
func WithJsResultSave ¶ added in v1.2.6
func WithLeakless ¶ added in v1.2.3
func WithLocalStorage ¶ added in v1.2.4
func WithMaxDepth ¶ added in v1.2.3
func WithMaxUrl ¶ added in v1.2.3
func WithPageSizedWaitGroup ¶ added in v1.2.3
func WithPageSizedWaitGroup(pageSizedWaitGroup *utils.SizedWaitGroup) ConfigOpt
func WithPageTimeout ¶ added in v1.2.3
func WithPageVisitFilter ¶ added in v1.2.3
func WithPageVisitFilter(pageVisitFilter *tools.StringCountFilter) ConfigOpt
func WithResponse ¶ added in v1.2.8
func WithResultChannel ¶ added in v1.2.3
func WithResultSentFilter ¶ added in v1.2.3
func WithResultSentFilter(resultSentFilter *tools.StringCountFilter) ConfigOpt
func WithRuntimeID ¶ added in v1.2.6
func WithSaveToDB ¶ added in v1.2.6
func WithScanRangeLevel ¶ added in v1.2.3
func WithScanRangeLevel(scanRange scanRangeLevel) ConfigOpt
func WithScanRepeatLevel ¶ added in v1.2.3
func WithScanRepeatLevel(scanRepeat repeatLevel) ConfigOpt
func WithSensitiveWords ¶ added in v1.2.3
func WithSessionStorage ¶ added in v1.3.2
func WithSourceType ¶ added in v1.3.1
func WithStartWaitGroup ¶ added in v1.2.4
func WithStartWaitGroup(waitGroup *utils.SizedWaitGroup) ConfigOpt
func WithStealth ¶ added in v1.2.5
func WithTargetUrl ¶ added in v1.2.3
func WithUrlCheck ¶ added in v1.3.1
func WithUrlTree ¶ added in v1.2.3
func WithWhiteList ¶ added in v1.2.3
type CrawlerCore ¶ added in v1.2.3
type CrawlerCore struct {
// contains filtered or unexported fields
}
func NewCrawlerCore ¶ added in v1.2.3
func NewCrawlerCore(targetUrl string, opts ...ConfigOpt) (*CrawlerCore, error)
func (*CrawlerCore) Start ¶ added in v1.2.3
func (core *CrawlerCore) Start()
func (*CrawlerCore) Test ¶ added in v1.2.7
func (core *CrawlerCore) Test()
type CrawlerHijack ¶ added in v1.2.6
type CrawlerHijack struct { Request *CrawlerHijackRequest Response *CrawlerHijackResponse OnError func(error) Skip bool CustomState interface{} // contains filtered or unexported fields }
func (*CrawlerHijack) ContinueRequest ¶ added in v1.2.6
func (hijack *CrawlerHijack) ContinueRequest(cq *proto.FetchContinueRequest)
func (*CrawlerHijack) LoadResponse ¶ added in v1.2.6
func (hijack *CrawlerHijack) LoadResponse(opts []lowhttp.LowhttpOpt, loadBody bool) error
type CrawlerHijackHandler ¶ added in v1.2.6
type CrawlerHijackHandler struct {
// contains filtered or unexported fields
}
type CrawlerHijackRequest ¶ added in v1.2.6
type CrawlerHijackRequest struct {
// contains filtered or unexported fields
}
func (*CrawlerHijackRequest) Body ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Body() string
func (*CrawlerHijackRequest) Header ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Header(key string) string
func (*CrawlerHijackRequest) Headers ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Headers() proto.NetworkHeaders
func (*CrawlerHijackRequest) IsNavigation ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) IsNavigation() bool
func (*CrawlerHijackRequest) JSONBody ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) JSONBody() gson.JSON
func (*CrawlerHijackRequest) Method ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Method() string
func (*CrawlerHijackRequest) Req ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Req() *http.Request
func (*CrawlerHijackRequest) SetBody ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) SetBody(obj interface{}) *CrawlerHijackRequest
func (*CrawlerHijackRequest) SetContext ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) SetContext(ctx context.Context) *CrawlerHijackRequest
func (*CrawlerHijackRequest) Type ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) Type() proto.NetworkResourceType
func (*CrawlerHijackRequest) URL ¶ added in v1.2.6
func (hijack *CrawlerHijackRequest) URL() *url.URL
type CrawlerHijackResponse ¶ added in v1.2.6
type CrawlerHijackResponse struct {
// contains filtered or unexported fields
}
func (*CrawlerHijackResponse) Body ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) Body() string
func (*CrawlerHijackResponse) Fail ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) Fail(reason proto.NetworkErrorReason) *CrawlerHijackResponse
func (*CrawlerHijackResponse) Headers ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) Headers() http.Header
func (*CrawlerHijackResponse) Payload ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) Payload() *proto.FetchFulfillRequest
func (*CrawlerHijackResponse) SetBody ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) SetBody(obj interface{}) *CrawlerHijackResponse
func (*CrawlerHijackResponse) SetHeader ¶ added in v1.2.6
func (hijack *CrawlerHijackResponse) SetHeader(pairs ...string) *CrawlerHijackResponse
type CrawlerRouter ¶ added in v1.2.6
type CrawlerRouter struct {
// contains filtered or unexported fields
}
func NewBrowserHijackRequests ¶ added in v1.2.6
func NewBrowserHijackRequests(browser *rod.Browser) *CrawlerRouter
func NewPageHijackRequests ¶ added in v1.2.6
func NewPageHijackRequests(page *rod.Page) *CrawlerRouter
func (*CrawlerRouter) Add ¶ added in v1.2.6
func (router *CrawlerRouter) Add(pattern string, resourceType proto.NetworkResourceType, handler func(*CrawlerHijack)) error
func (*CrawlerRouter) Run ¶ added in v1.2.6
func (router *CrawlerRouter) Run()
func (*CrawlerRouter) Stop ¶ added in v1.2.6
func (router *CrawlerRouter) Stop() error
type HijackRequest ¶ added in v1.2.5
type HijackResponse ¶ added in v1.2.5
type HijackResponse interface { Payload() *proto.FetchFulfillRequest Body() string Headers() http.Header }
type HttpRequest ¶ added in v1.2.3
type HttpRequest struct {
// contains filtered or unexported fields
}
func CreateFileRequest ¶ added in v1.2.3
func CreateFileRequest(url, method string, params, files map[string]string) *HttpRequest
func CreateGetRequest ¶ added in v1.2.3
func CreateGetRequest(url string) *HttpRequest
func CreateRequest ¶ added in v1.2.3
func CreateRequest() *HttpRequest
func (*HttpRequest) Do ¶ added in v1.2.3
func (request *HttpRequest) Do() error
func (*HttpRequest) GetRequest ¶ added in v1.2.3
func (request *HttpRequest) GetRequest() error
func (*HttpRequest) GetUrl ¶ added in v1.2.3
func (request *HttpRequest) GetUrl() string
func (*HttpRequest) MultiPartRequest ¶ added in v1.2.3
func (request *HttpRequest) MultiPartRequest() error
func (*HttpRequest) PostRequest ¶ added in v1.2.3
func (request *HttpRequest) PostRequest() error
func (*HttpRequest) Request ¶ added in v1.2.3
func (request *HttpRequest) Request() error
func (*HttpRequest) Show ¶ added in v1.2.3
func (request *HttpRequest) Show() (string, error)
type JSEval ¶ added in v1.2.6
type JSEval struct {
// contains filtered or unexported fields
}
func CreateJsEval ¶ added in v1.2.6
func CreateJsEval() *JSEval
type JsResultSave ¶ added in v1.2.6
type OutputBody ¶ added in v1.2.3
type OutputHeader ¶ added in v1.2.3
type OutputRequest ¶ added in v1.2.3
type OutputRequest struct { Url string `json:"url"` Method string `json:"method"` Headers []*OutputHeader `json:"headers"` Body OutputBody `json:"body"` HTTPRaw string `json:"http_raw"` }
type OutputResponse ¶ added in v1.2.3
type OutputResponse struct { StatusCode int `json:"status_code"` Headers []*OutputHeader `json:"headers"` Body OutputBody `json:"body"` }
type OutputResult ¶ added in v1.2.3
type OutputResult struct { Url string `json:"url"` Request OutputRequest `json:"request"` Response OutputResponse `json:"response"` }
func GeneratorOutput ¶ added in v1.2.3
func GeneratorOutput(reqInfo ReqInfo) *OutputResult
type OutputResults ¶ added in v1.2.3
type OutputResults struct {
// contains filtered or unexported fields
}
type RequestResult ¶ added in v1.2.3
type RequestResult struct {
// contains filtered or unexported fields
}
func (*RequestResult) From ¶ added in v1.2.3
func (result *RequestResult) From() string
func (*RequestResult) Method ¶ added in v1.2.3
func (result *RequestResult) Method() string
func (*RequestResult) RequestBody ¶ added in v1.2.3
func (result *RequestResult) RequestBody() string
func (*RequestResult) RequestHeaders ¶ added in v1.2.3
func (result *RequestResult) RequestHeaders() map[string]string
func (*RequestResult) RequestRaw ¶ added in v1.2.7
func (result *RequestResult) RequestRaw() ([]byte, error)
func (*RequestResult) ResponseBody ¶ added in v1.2.3
func (result *RequestResult) ResponseBody() string
func (*RequestResult) ResponseHeaders ¶ added in v1.2.3
func (result *RequestResult) ResponseHeaders() map[string]string
func (*RequestResult) Screenshot ¶ added in v1.2.3
func (result *RequestResult) Screenshot() string
func (*RequestResult) StatusCode ¶ added in v1.2.3
func (result *RequestResult) StatusCode() int
func (*RequestResult) Type ¶ added in v1.2.3
func (result *RequestResult) Type() string
func (*RequestResult) Url ¶ added in v1.2.3
func (result *RequestResult) Url() string
type SimpleResult ¶ added in v1.2.3
type SimpleResult struct {
// contains filtered or unexported fields
}
func (*SimpleResult) From ¶ added in v1.2.3
func (simpleResult *SimpleResult) From() string
func (*SimpleResult) Method ¶ added in v1.2.3
func (simpleResult *SimpleResult) Method() string
func (*SimpleResult) RequestBody ¶ added in v1.2.3
func (simpleResult *SimpleResult) RequestBody() string
func (*SimpleResult) RequestHeaders ¶ added in v1.2.3
func (simpleResult *SimpleResult) RequestHeaders() map[string]string
func (*SimpleResult) RequestRaw ¶ added in v1.2.7
func (simpleResult *SimpleResult) RequestRaw() ([]byte, error)
func (*SimpleResult) ResponseBody ¶ added in v1.2.3
func (simpleResult *SimpleResult) ResponseBody() string
func (*SimpleResult) ResponseHeaders ¶ added in v1.2.3
func (simpleResult *SimpleResult) ResponseHeaders() map[string]string
func (*SimpleResult) Screenshot ¶ added in v1.2.3
func (simpleResult *SimpleResult) Screenshot() string
func (*SimpleResult) StatusCode ¶ added in v1.2.3
func (*SimpleResult) StatusCode() int
func (*SimpleResult) Type ¶ added in v1.2.3
func (simpleResult *SimpleResult) Type() string
func (*SimpleResult) Url ¶ added in v1.2.3
func (simpleResult *SimpleResult) Url() string
type TestHijackRequest ¶ added in v1.2.5
type TestHijackRequest struct {
// contains filtered or unexported fields
}
func (*TestHijackRequest) Body ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Body() string
func (*TestHijackRequest) Header ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Header(key string) string
func (*TestHijackRequest) Headers ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Headers() proto.NetworkHeaders
func (*TestHijackRequest) JSONBody ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) JSONBody() gson.JSON
func (*TestHijackRequest) Method ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Method() string
func (*TestHijackRequest) Req ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Req() *http.Request
func (*TestHijackRequest) Type ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) Type() proto.NetworkResourceType
func (*TestHijackRequest) URL ¶ added in v1.2.5
func (testHijackRequest *TestHijackRequest) URL() *url.URL
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package cmd @Author bcy2007 2023/7/14 11:11
|
Package cmd @Author bcy2007 2023/7/14 11:11 |
Package crawlerx @Author bcy2007 2024/4/2 14:44
|
Package crawlerx @Author bcy2007 2024/4/2 14:44 |
Package tools @Author bcy2007 2023/7/12 16:40
|
Package tools @Author bcy2007 2023/7/12 16:40 |
config
Package config https://github.com/unknwon/goconfig
|
Package config https://github.com/unknwon/goconfig |