middleware

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProviderProductionSet provides all middleware for production.
	ProviderProductionSet = wire.NewSet(ProvideAllProductionMiddleware, corsmiddleware.ProviderProductionSet)
)

Functions

func ProvideAllProductionMiddleware

func ProvideAllProductionMiddleware(log *log.Log, cors *corsmiddleware.CORSMiddleware) []gin.HandlerFunc

ProvideAllProductionMiddleware provides all the middleware that will be used in production.

func PublicErrorHandler

func PublicErrorHandler() gin.HandlerFunc

PublicErrorHandler middleware handles public errors for the Gin framework.

Types

type APIErrorJSON

type APIErrorJSON struct {
	Error string `json:"error"`
}

APIErrorJSON represents an error message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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