cmd

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PostMeasurementTypeHttp = "http"

Variables

View Source
var (
	ErrorNoPreviousMeasurements = errors.New("no previous measurements found")
	ErrInvalidIndex             = errors.New("invalid index")
	ErrIndexOutOfRange          = errors.New("index out of range")
)
View Source
var SESSION_PATH string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type HttpCmdOpts added in v0.4.0

type HttpCmdOpts struct {
	Path     string
	Query    string
	Host     string
	Method   string
	Protocol string
	Port     int
	Resolver string
	Headers  []string
}

HttpCmdOpts represents the parsed http command line opts

type UrlData added in v0.4.0

type UrlData struct {
	Protocol string
	Path     string
	Query    string
	Host     string
	Port     int
}

Jump to

Keyboard shortcuts

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