client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiUrl = "https://api.globalping.io/v1/measurements"

Functions

func DecodeTimings

func DecodeTimings(cmd string, timings json.RawMessage) (model.Timings, error)

func NewMeasurementsFetcher added in v1.0.0

func NewMeasurementsFetcher(apiUrl string) *measurementsFetcher

func PostAPI

func PostAPI(measurement model.PostMeasurement) (model.PostResponse, bool, error)

Post measurement to Globalping API - boolean indicates whether to print CLI help on error

Types

type MeasurementsFetcher added in v1.0.0

type MeasurementsFetcher interface {
	GetMeasurement(id string) (*model.GetMeasurement, error)
	GetRawMeasurement(id string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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