Documentation ¶
Index ¶
- func CacheControl(maxAge int) gin.HandlerFunc
- func FilterAuthorizedApps(authorizedAppsMap map[string]fiat.Application, allApps core.Applications, ...) []core.Application
- func HandleError() gin.HandlerFunc
- func LogRequest() gin.HandlerFunc
- func TaskID() gin.HandlerFunc
- func Vary(headers ...string) gin.HandlerFunc
- type Controller
- func (cc *Controller) AuthAccount(permissions ...string) gin.HandlerFunc
- func (cc *Controller) AuthApplication(permissions ...string) gin.HandlerFunc
- func (cc *Controller) AuthOps(permissions ...string) gin.HandlerFunc
- func (cc *Controller) PostFilterAuthorizedApplications(permissions ...string) gin.HandlerFunc
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 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
Click to show internal directories.
Click to hide internal directories.