use

package
v0.0.0-...-4ea7438 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth() gin.HandlerFunc

Auth 授权

func AuthCheck

func AuthCheck()

AuthCheck 授权校验

func AuthGet

func AuthGet()

AuthGet 获取授权信息

func Break

func Break() gin.HandlerFunc

Break 中断

func Cors

func Cors(site string) gin.HandlerFunc

func Error

func Error() gin.HandlerFunc

Error Error

func Limit

func Limit() gin.HandlerFunc

Limit 限速 redis

func Log

func Log() gin.HandlerFunc

Log 日志

func NoCache

func NoCache(c *gin.Context)

NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.

func Options

func Options(c *gin.Context)

Options is a middleware function that appends headers for options requests and aborts then exits the middleware chain and ends the request.

func Rc4

func Rc4() gin.HandlerFunc

Rc4 Rc4

func Rsa

func Rsa() gin.HandlerFunc

Rsa Rsa

func Secure

func Secure(c *gin.Context)

Secure is a middleware function that appends security and resource access headers.

func Timeout

func Timeout(timeout time.Duration) gin.HandlerFunc

Timeout 超时

func TlsHandler

func TlsHandler(domain string) gin.HandlerFunc

TlsHandler tls传输 domain:xxx.com 使用 router.RunTLS(":8080", "ssl.pem", "ssl.key")

func Trace

func Trace() gin.HandlerFunc

Trace 链路追踪

Types

type SysOperationRecord

type SysOperationRecord struct {
	Ip           string
	Method       string
	Path         string
	Agent        string
	Body         string
	ErrorMessage string
}

Jump to

Keyboard shortcuts

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