Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRegex ¶
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.
Click to show internal directories.
Click to hide internal directories.