http

package
v0.0.0-...-3e848aa Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryJSONBind binding.Binding

QueryJSONBind represents url query params json bind.

Functions

func IsAPIRequest

func IsAPIRequest(c *gin.Context) bool

IsAPIRequest returns if api request.

func IsLoginPage

func IsLoginPage(c *gin.Context) bool

IsLoginPage returns if login page.

func IsStaticResource

func IsStaticResource(c *gin.Context) bool

IsStaticResource returns if static resource.

Types

type QueryJSONBinder

type QueryJSONBinder struct{}

QueryJSONBinder represents url query params json binder. implements binding.Binding interface.

func (QueryJSONBinder) Bind

func (QueryJSONBinder) Bind(req *http.Request, obj any) error

Bind binds request data to obj.

func (QueryJSONBinder) Name

func (QueryJSONBinder) Name() string

Name returns the binder's name.

Jump to

Keyboard shortcuts

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