ginx

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc

func WrapBody

func WrapBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc

func WrapFinder added in v1.8.0

func WrapFinder(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc

func WrapFinderBody added in v1.8.0

func WrapFinderBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc

func Ws added in v1.8.0

func Ws(fn func(ctx *gin.Context) error) gin.HandlerFunc

Types

type Result

type Result struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data any    `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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