api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap added in v0.0.5

func Wrap(handlerName string, handler http.Handler) http.HandlerFunc

Wrap handler with metrics

Types

type API added in v0.0.4

type API struct {
	// contains filtered or unexported fields
}

func NewAPI added in v0.0.4

func NewAPI(config *config.Config, logger log.Logger, proxy proxy.RequestProxy) *API

NewAPI instance

func (*API) Query added in v0.0.4

func (api *API) Query() http.Handler

Query Wraped Prometheus Query

func (*API) QueryRange added in v0.0.4

func (api *API) QueryRange() http.Handler

QueryRange Wraped Prometheus Query

func (*API) Series added in v0.0.4

func (api *API) Series() http.Handler

Series Wraped Prometheus Query

Jump to

Keyboard shortcuts

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