middleware

package module
v0.0.0-...-45927e1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const StartKey = "start"

Variables

This section is empty.

Functions

func SetStart

func SetStart(c *gin.Context)

Types

type Collection

type Collection []Middleware

func (Collection) Apply

func (collection Collection) Apply(r *gin.Engine)

func (Collection) Register

func (collection Collection) Register()

type Middleware

type Middleware interface {
	Register()
	Handler() gin.HandlerFunc
}

Directories

Path Synopsis
contenttyper module
logger module
metrics module
ratelimiter module
recovery module

Jump to

Keyboard shortcuts

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