middleware

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheControl added in v0.24.0

func CacheControl(maxAge int) gin.HandlerFunc

CacheControl sets the 'Cache-Control' header to the defined max-age.

func FilterAuthorizedApps

func FilterAuthorizedApps(authorizedAppsMap map[string]fiat.Application, allApps core.Applications, permissions ...string) []core.Application

func HandleError

func HandleError() gin.HandlerFunc

func LogRequest

func LogRequest() gin.HandlerFunc

A verbose request/response logger.

func TaskID

func TaskID() gin.HandlerFunc

TaskID attaches a unique GUID to the context.

func Vary added in v0.24.0

func Vary(headers ...string) gin.HandlerFunc

Vary sets the 'Vary' header to the defined headers.

Types

type Controller

type Controller struct {
	*internal.Controller
}

func (*Controller) AuthAccount

func (cc *Controller) AuthAccount(permissions ...string) gin.HandlerFunc

func (*Controller) AuthApplication

func (cc *Controller) AuthApplication(permissions ...string) gin.HandlerFunc

func (*Controller) AuthOps added in v0.21.0

func (cc *Controller) AuthOps(permissions ...string) gin.HandlerFunc

func (*Controller) PostFilterAuthorizedApplications

func (cc *Controller) PostFilterAuthorizedApplications(permissions ...string) gin.HandlerFunc

Jump to

Keyboard shortcuts

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