lib

package
v0.0.0-...-b399ea8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteHar2xlsx

func ExecuteHar2xlsx(inputFile string, outputFile string) error

Types

type HAR

type HAR struct {
	Log struct {
		Version string `json:"version"`
		Creator struct {
			Name    string `json:"name"`
			Version string `json:"version"`
		} `json:"creator"`
		Entries []struct {
			StartedDateTime string  `json:"startedDateTime"`
			Time            float64 `json:"time"`
			Request         struct {
				Method      string              `json:"method"`
				URL         string              `json:"url"`
				HTTPVersion string              `json:"httpVersion"`
				Headers     []map[string]string `json:"headers"`
				QueryString []map[string]string `json:"queryString"`
				PostData    struct {
					MimeType string `json:"mimeType"`
					Text     string `json:"text"`
				} `json:"postData"`
			} `json:"request"`
			Response struct {
				Status      int                 `json:"status"`
				StatusText  string              `json:"statusText"`
				HTTPVersion string              `json:"httpVersion"`
				Headers     []map[string]string `json:"headers"`
				Content     struct {
					Size     int    `json:"size"`
					MimeType string `json:"mimeType"`
					Text     string `json:"text"`
				} `json:"content"`
			} `json:"response"`
			Timings struct {
				Blocked float64 `json:"blocked"`
				Dns     float64 `json:"dns"`
				Connect float64 `json:"connect"`
				Send    float64 `json:"send"`
				Wait    float64 `json:"wait"`
				Receive float64 `json:"receive"`
				SSL     float64 `json:"ssl"`
			} `json:"timings"`
		} `json:"entries"`
	} `json:"log"`
}

Define the HAR structure

Jump to

Keyboard shortcuts

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