middleware

package
v0.0.0-...-df6cefe Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONSchemaValidator

func JSONSchemaValidator() echo.MiddlewareFunc

JSONSchemaValidator middleware validate the payload against the model schema

Types

type APIStats

type APIStats interface {
	Middleware() echo.MiddlewareFunc
	GetStatsHandler() echo.HandlerFunc
}

APIStats is the middleware that collects the API execution stats and provides APIs to retrieve the stats

func NewAPIStats

func NewAPIStats() APIStats

NewAPIStats constucts an instance of APIStats

Jump to

Keyboard shortcuts

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