helper

package
v0.0.0-...-6b57581 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimestampFreshness int

TimestampFreshness is the amount of second a result is treated as valid

Functions

func CheckTimeFreshness

func CheckTimeFreshness(timestamp time.Time)

CheckTimeFreshness tests if the data is still valid

func CheckTimestampFreshness

func CheckTimestampFreshness(timestamp model.Time)

CheckTimestampFreshness tests if the data is still valid

func DoAPIRequest

func DoAPIRequest(address string) ([]byte, error)

DoAPIRequest does the http handling for an api request

func NewAPIClientV1

func NewAPIClientV1(address string) (v1.API, error)

NewAPIClientV1 will create an prometheus api client v1

Types

This section is empty.

Jump to

Keyboard shortcuts

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