gin

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfig = errors.New("no config present for the httpsecure module")

Functions

func NewSecureMw

func NewSecureMw(cfg config.ExtraConfig) gin.HandlerFunc

NewSecureMw creates a secured middleware for the gin engine

func Register

func Register(cfg config.ExtraConfig, engine *gin.Engine) error

Register registers the secure middleware into the gin engine

Types

This section is empty.

Jump to

Keyboard shortcuts

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