xmetrics

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `metrics`

Variables

This section is empty.

Functions

func Register

func Register(r echo.RouteRegister)

func RequestMiddleware

func RequestMiddleware() echo.Middleware

func RequestSkipper

func RequestSkipper() echo.Skipper

func ResponseMiddleware

func ResponseMiddleware() echo.Middleware

Types

type BasicAuth

type BasicAuth struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

type Metrics

type Metrics struct {
	*BasicAuth
	Enable bool `json:"enable"`
}

func New

func New() *Metrics

func (*Metrics) Reload

func (m *Metrics) Reload() error

Jump to

Keyboard shortcuts

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