mid

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func Logger

func Logger() gin.HandlerFunc

func ValueRealIP

func ValueRealIP(ctx context.Context) string

func XRealIp

func XRealIp(ctx *gin.Context)

Types

type Entry

type Entry struct {
	Path       string        `json:"path"`
	Method     string        `json:"method"`
	Body       string        `json:"body"`
	Latency    time.Duration `json:"latency"`
	ClientIP   string        `json:"client_ip"`
	StatusCode int           `json:"status_code"`
}

Jump to

Keyboard shortcuts

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