ginwrapper

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBasicToken

func GetBasicToken(ctx *gin.Context) string

GetBasicToken 获取 basic token

func GetBearerToken

func GetBearerToken(ctx *gin.Context) string

GetBearerToken 获取 bearer token

func GetToken

func GetToken(ctx *gin.Context, prefix string) string

GetToken 获取Token

func IsBasicAuth

func IsBasicAuth(ctx *gin.Context) bool

IsBasicAuth 是否为 basic 认证

func ParseForm

func ParseForm(c *gin.Context, obj interface{}) error

ParseForm 解析Form请求

func ParseJSON

func ParseJSON(c *gin.Context, obj interface{}) error

ParseJSON 解析请求JSON

func ParseQuery

func ParseQuery(c *gin.Context, obj interface{}) error

ParseQuery 解析Query参数

Types

This section is empty.

Jump to

Keyboard shortcuts

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