statistics

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 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 added in v0.1.4

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