har_loader

package
v0.21.19 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomHAR

type CustomHAR struct {
	Log      *CustomHARLog      `json:"log"`
	AkitaExt har.AkitaExtension `json:"akita_ext"`
}

func LoadCustomHARFromFile

func LoadCustomHARFromFile(path string) (CustomHAR, error)

type CustomHAREntry

type CustomHAREntry struct {
	// Only include fields we care about
	StartedDateTime time.Time      `json:"startedDateTime"`
	Request         *har.Request   `json:"request"`
	Response        *har.Response  `json:"response"`
	Comment         string         `json:"comment"`
	Timings         *CustomTimings `json:"timings"`
}

type CustomHARLog

type CustomHARLog struct {
	Version string           `json:"version"`
	Creator *har.Creator     `json:"creator"`
	Entries []CustomHAREntry `json:"entries"`
	Comment string           `json:"comment"`
}

type CustomTimings added in v0.12.0

type CustomTimings struct {
	Blocked         *float32 `json:"blocked"`
	DNS             *float32 `json:"dns"`
	SSL             *float32 `json:"ssl"`
	Connect         *float32 `json:"connect"`
	Send            *float32 `json:"send"`
	Wait            *float32 `json:"wait"`
	Receive         *float32 `json:"receive"`
	BlockedQueueing *float32 `json:"_blocked_queueing"`
}

This contains all the fields used by Martian *and* by Chrome, as pointers so we can tell which ones are present.

Jump to

Keyboard shortcuts

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