cmd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MPL-2.0 Imports: 24 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 Root added in v1.2.1

type Root struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRoot added in v1.2.1

func NewRoot(
	printer *view.Printer,
	ctx *view.Context,
	viewer view.Viewer,
	time utils.Time,
	globalpingClient globalping.Client,
	globalpingProbe probe.Probe,
) *Root

func (*Root) RunDNS added in v1.2.1

func (r *Root) RunDNS(cmd *cobra.Command, args []string) error

func (*Root) RunHTTP added in v1.2.1

func (r *Root) RunHTTP(cmd *cobra.Command, args []string) error

func (*Root) RunInstallProbe added in v1.2.1

func (r *Root) RunInstallProbe(cmd *cobra.Command, args []string)

func (*Root) RunMTR added in v1.2.1

func (r *Root) RunMTR(cmd *cobra.Command, args []string) error

func (*Root) RunPing added in v1.2.1

func (r *Root) RunPing(cmd *cobra.Command, args []string) error

func (*Root) RunTraceroute added in v1.2.1

func (r *Root) RunTraceroute(cmd *cobra.Command, args []string) error

func (*Root) RunVersion added in v1.2.1

func (r *Root) RunVersion(cmd *cobra.Command, args []string)

type TargetQuery added in v1.2.1

type TargetQuery struct {
	Target   string
	From     string
	Resolver string
}

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