params

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const IdentityKeyID = "ID"

Variables

This section is empty.

Functions

func GetBoolValueFromParam

func GetBoolValueFromParam(context *gin.Context, key string) bool

func GetCallerID

func GetCallerID(context *gin.Context) uint

Returns the caller id, extracted from the token

func GetDepartment

func GetDepartment(context *gin.Context) string

Returns the department for schools from the params

func GetProblemID

func GetProblemID(context *gin.Context) uint

func GetProvince

func GetProvince(context *gin.Context) string

Returns the province for schools from the params

func GetSearchText

func GetSearchText(context *gin.Context) string

Returns the search string for schools from the params

func GetStringValueFromParam

func GetStringValueFromParam(context *gin.Context, key string) string

func GetUintValueFromParam

func GetUintValueFromParam(context *gin.Context, key string) uint

Generic function to retrieve a param

func GetUserID

func GetUserID(context *gin.Context) uint

Returns the user id from the params

Types

This section is empty.

Jump to

Keyboard shortcuts

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