mgin

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessControlAllowOrigin      = "Access-Control-Allow-Origin"
	AccessControlAllowHeaders     = "Access-Control-Allow-Headers"
	AccessControlAllowMethods     = "Access-Control-Allow-Methods"
	AccessControlExposeHeaders    = "Access-Control-Expose-Headers"
	AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
)

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func Recover

func Recover(recoveryFunc gin.RecoveryFunc) gin.HandlerFunc

Types

type Middleware

type Middleware struct {
}

type PanicExceptionRecord

type PanicExceptionRecord struct {
}

func (*PanicExceptionRecord) Write

func (p *PanicExceptionRecord) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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