fetcher

package
v0.0.0-...-6581538 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchURL

func FetchURL(url string) (string, error)

FetchURL returns HTTP response body

func GenWorkers

func GenWorkers(num, wait int) chan<- func()

GenWorkers generate workders

Types

type Cert

type Cert struct {
	NotBefore              string
	NotAfter               string
	CommonName             string
	OrganizationalUnitName string
	OrganizationName       string
	LocalityName           string
	StateOrProvinceName    string
	CountryName            string
}

Cert has certificate information

func FetchConcurrently

func FetchConcurrently(urls []string, concurrency, wait int) (responses []*Cert, err error)

FetchConcurrently fetches concurrently

func ScrapeURL

func ScrapeURL(url string) (cert *Cert, err error)

ScrapeURL scrapes URL

Jump to

Keyboard shortcuts

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