applications

package
v0.0.0-...-27a64bc Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxApp = "app"
)

CtxApp is the context key containing application

Variables

This section is empty.

Functions

func ApplicationMiddleware

func ApplicationMiddleware(
	applicationParser func(ctx context.Context, code string) *common.Application,
) gin.HandlerFunc

ApplicationMiddleware fills the context with the current application

func GetFromCtx

func GetFromCtx(ctx *gin.Context) (*common.Application, error)

GetFromCtx returns the stored application object from context

func RoleMiddleware

func RoleMiddleware() gin.HandlerFunc

RoleMiddleware registers a middleware which reads the application header

Types

This section is empty.

Jump to

Keyboard shortcuts

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