cloudflare

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SvcStateOpen         = "open"
	SvcStateAccessDenied = "access denied"
	SvcStateClosed       = "closed"
	SvcStateFiltered     = "filtered"
	SvcStateUnknown      = "unknown"
	SvcStateProxyError   = "proxy error"
)

Variables

This section is empty.

Functions

func GetProxy

func GetProxy(api *cloudflare.API, domain string) (string, error)

Types

type CloudFlareScanner

type CloudFlareScanner struct {
	Client *http.Client
	Pool   *pond.WorkerPool
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(api *cloudflare.API, reporter lib.Reporter, maxWorkers int, domain string, maxCapacity int) *CloudFlareScanner

func (*CloudFlareScanner) Submit

func (c *CloudFlareScanner) Submit(req *http.Request)

type Response

type Response struct {
	ProxyResp  *http.Response
	ProxyErr   error
	DirectResp *http.Response
	DirectErr  error
}

type SvcState

type SvcState string

func (SvcState) IsBlocked

func (s SvcState) IsBlocked() bool

Jump to

Keyboard shortcuts

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