v1alpha1

package
v0.0.0-...-a88c85e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 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