middleware

package
v0.0.0-...-be4f65a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const ACCESS_LEVEL_KEY = "access_level"
View Source
const JOB_TOKEN_KEY = "job_token"
View Source
const ORGANISATION_ID_KEY = "organisation_ID"
View Source
const ORGANISATION_SOURCE_KEY = "organisation_Source"
View Source
const USER_ID_KEY = "user_ID"

Variables

This section is empty.

Functions

func AccessLevel

func AccessLevel(allowedAccessLevels ...string) gin.HandlerFunc

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func CheckJobToken

func CheckJobToken(c *gin.Context, token string) (*models.JobToken, error)

func GetApiMiddleware

func GetApiMiddleware() gin.HandlerFunc

func GetWebMiddleware

func GetWebMiddleware() gin.HandlerFunc

func HeadersApiAuth

func HeadersApiAuth() gin.HandlerFunc

func HttpBasicApiAuth

func HttpBasicApiAuth() gin.HandlerFunc

func HttpBasicWebAuth

func HttpBasicWebAuth() gin.HandlerFunc

func InternalApiAuth

func InternalApiAuth() gin.HandlerFunc

func JWTBearerTokenAuth

func JWTBearerTokenAuth(auth services.Auth) gin.HandlerFunc

func JWTWebAuth

func JWTWebAuth(auth services.Auth) gin.HandlerFunc

func NoopApiAuth

func NoopApiAuth() gin.HandlerFunc

func NoopWebAuth

func NoopWebAuth() gin.HandlerFunc

func SecretCodeAuth

func SecretCodeAuth() gin.HandlerFunc

func SetContextParameters

func SetContextParameters(c *gin.Context, auth services.Auth, token *jwt.Token) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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