support

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

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnData

func ReturnData(c *gin.Context, data interface{})

func ReturnError

func ReturnError(c *gin.Context, err error)

func ReturnErrorWithHttpCode

func ReturnErrorWithHttpCode(c *gin.Context, err error, httpCode int)

func ReturnSuccess

func ReturnSuccess(c *gin.Context)

Types

type RedirectInvoke

type RedirectInvoke struct {
	TargetUrl string
}

func (RedirectInvoke) Do

func (invoke RedirectInvoke) Do(c *gin.Context) error

type RequestHandlerFunc

type RequestHandlerFunc func(request *http.Request, c *gin.Context) error

type ResponseHandlerFunc

type ResponseHandlerFunc func(body *[]byte, c *gin.Context) error

Jump to

Keyboard shortcuts

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