router

package
v0.0.0-...-0dca507 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App() *echo.Echo

App creates new instance of Echo and configures it.

func NewMetricWithConfig

func NewMetricWithConfig(config PrometheusConfig) echo.MiddlewareFunc

NewMetricWithConfig creates a new prometheus with config.

func NewPrometheusMiddleware

func NewPrometheusMiddleware(namespace string) echo.MiddlewareFunc

NewPrometheusMiddleware returns new prometheus exporter with default config.

Types

type EchoMetrics

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

EchoMetrics represents prometheus metrics for echo.

func NewEchoMetrics

func NewEchoMetrics(namespace string) EchoMetrics

NewEchoMetrics creates and registers echo metrics. This function will panic on multiple call.

type PrometheusConfig

type PrometheusConfig struct {
	// Skipper echo skipper
	Skipper   middleware.Skipper
	Namespace string
}

PrometheusConfig represents basic prometheus exporter.

Jump to

Keyboard shortcuts

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