statistics

package
v0.0.0-...-f2f35e6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() echo.MiddlewareFunc

Middleware represents an API middleware.

Types

type Statistics

type Statistics struct {
	UpSince             time.Time
	TotalCount          int
	SuccessfulCounter   int
	FailedCounter       int
	AverageResponseTime float64
}

Statistics includes stats of all requests handled by the api.

func GetStatistics

func GetStatistics() (Statistics, error)

GetStatistics returns the current statistics.

Jump to

Keyboard shortcuts

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