middleware

package
v0.0.0-...-e2627ae Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorization

func NewAuthorization(serverToken string, notsecured ...string) gin.HandlerFunc

Creates authorization middleware for API auhtorization

func NewLogger

func NewLogger(log *logging.Logger, notlogged ...string) gin.HandlerFunc

Create a Logger middleware for gin

func NewRecovery

func NewRecovery(log *logging.Logger) gin.HandlerFunc

Creates a Recovery middlware, in case of a fatal error returns 500

Types

This section is empty.

Jump to

Keyboard shortcuts

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