v1alpha1

package
v1.11.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRegex

func BuildRegex(list []string) []*regexp.Regexp

BuildRegex returns the regular expression look alike prometheus's response to get request.

func PrometheusService

func PrometheusService(col prometheus.Collector, stop chan struct{}) []byte

PrometheusService is used to mock the behaviour of prometheus's client-go apis for testing purpose. Here, it registers the collector and then starts a test http server and send a get request to which server reply with the response as expected

func Unregister

func Unregister(col prometheus.Collector) bool

Unregister unregister the collector

Types

This section is empty.

Jump to

Keyboard shortcuts

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