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.
Click to show internal directories.
Click to hide internal directories.