framework

package
v0.0.0-...-ca727f0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	http.Client
}

Runner provides relevant APIs needed to run tests.

func NewRunner

func NewRunner() *Runner

NewRunner returns a new Runner.

func (*Runner) GetMetrics

func (r *Runner) GetMetrics(endpoint *url.URL) (map[string]*dto.MetricFamily, error)

GetMetrics parses the textual response from the provided endpoint.

func (*Runner) GetRaw

func (r *Runner) GetRaw(endpoint *url.URL) (string, error)

GetRaw writes the GetRaw response from the provided endpoint to the provided writer.

Jump to

Keyboard shortcuts

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