url

package
v0.0.0-...-e457aa1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const TotalWebsitesCount = 500000

Variables

View Source
var ErrorUrlLogger *glog.Logger
View Source
var StatsLogger *glog.Logger
View Source
var SuccessUrlLogger *glog.Logger

Functions

func GetWebsite

func GetWebsite() string

func GetWebsiteList

func GetWebsiteList() [TotalWebsitesCount]string

func LoadWebsites

func LoadWebsites(fileToLoad string)

func ParseFastHttpResponse

func ParseFastHttpResponse(err error, resp *fasthttp.Response, urlStats *UrlStats, websiteJob *WebsiteJob)

func ParseFastHttpResponse(err error, resp *fasthttp.Response){

func SetLogging

func SetLogging()

func WriteDataCollectionStatsToFile

func WriteDataCollectionStatsToFile()

Types

type UrlStats

type UrlStats struct {
	Url           string
	StatusCode    int
	Error         string
	DNS           time.Duration
	TLSHandshake  time.Duration
	ConnectTime   time.Duration
	FirstByteTime time.Duration
	TotalTime     time.Duration
}

func GetUrlMetrics

func GetUrlMetrics(url string) *UrlStats

func GetUrlMetricsFastHttp

func GetUrlMetricsFastHttp(websiteJob *WebsiteJob) *UrlStats

type WebsiteJob

type WebsiteJob struct {
	Website    string
	Domain     string
	Id         int
	ResultData *routinepool.JobResult
}

func (WebsiteJob) DoJob

func (websiteJob WebsiteJob) DoJob(routinePool *routinepool.RoutinePool)

func (WebsiteJob) GetID

func (websiteJob WebsiteJob) GetID() int

Jump to

Keyboard shortcuts

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