internal_benchmark

package
v0.0.0-...-fe5ad04 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingPayload = `` /* 986-byte string literal not displayed */

Functions

This section is empty.

Types

type Benchmark

type Benchmark struct {
	Iterations int
	Errors     int
	Successes  int
	Durations  []time.Duration
	Average    float64
	Print      func()
	Markdown   func() string
}

func ExecutePingBenchmark

func ExecutePingBenchmark(
	iterations int,
	timeBetween float32,
	url string,
	expectedContent string,
) Benchmark

func Start

func Start(
	iterations int,
	timeBetween float32,
	url string,
) []Benchmark

type PingResponse

type PingResponse struct {
	Type int `json:"type"`
	Data struct {
		Content string `json:"content"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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