scanner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient(cfg *config.Config) *HTTPClient

func (*HTTPClient) Send

func (c *HTTPClient) Send(
	ctx context.Context, targetURL, placeholderName, encoderName, payload string) (
	body []byte, statusCode int, err error)

type Scanner

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

func New

func New(db *test.DB, logger *log.Logger, cfg *config.Config) *Scanner

func (*Scanner) CheckBlocking

func (s *Scanner) CheckBlocking(body []byte, statusCode int) (bool, error)

func (*Scanner) CheckPass

func (s *Scanner) CheckPass(body []byte, statusCode int) (bool, error)

func (*Scanner) PreCheck

func (s *Scanner) PreCheck(url string) (blocked bool, statusCode int, err error)

func (*Scanner) Run

func (s *Scanner) Run(ctx context.Context, url string) error

func (*Scanner) WSPreCheck

func (s *Scanner) WSPreCheck(url string) (available, blocked bool, err error)

Jump to

Keyboard shortcuts

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