middlewares

package
v0.0.0-...-c763bc7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowIfCorrectGroupPassword

func AllowIfCorrectGroupPassword(c *gin.Context)

AllowIfCorrectGroupPassword allows requests if the group password is correct.

func AllowIfGroupIsNotFull

func AllowIfGroupIsNotFull(c *gin.Context)

AllowIfGroupIsNotFull allows requests for groups that are not yet full.

func AllowIfGroupIsOpen

func AllowIfGroupIsOpen(c *gin.Context)

AllowIfGroupIsOpen allows requests if the group is open.

func AllowIfUserIsMember

func AllowIfUserIsMember(c *gin.Context)

AllowIfUserIsMember allows requests on groups where the user is a member.

func AllowIfUserIsNotMember

func AllowIfUserIsNotMember(c *gin.Context)

AllowIfUserIsNotMember allows requests on groups where the user is not a member.

func AllowIfUserIsNotOwner

func AllowIfUserIsNotOwner(c *gin.Context)

AllowIfUserIsNotOwner allows requests on groups where the user is not the owner.

func AllowIfUserIsOwner

func AllowIfUserIsOwner(c *gin.Context)

AllowIfUserIsOwner allows requests on groups where the user is the owner.

func AuthenticateRequests

func AuthenticateRequests(c *gin.Context)

AuthenticateRequests checks if the request is authorized.

This checks the JWT in the `Authorization` header.

func GroupObject

func GroupObject(c *gin.Context)

GroupObject adds the Group entry to the context.

func GroupRequestBody

func GroupRequestBody(c *gin.Context)

GroupRequestBody adds the request body to the context.

func UserRequestBody

func UserRequestBody(c *gin.Context)

UserRequestBody adds the parsed request body to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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