Documentation ¶
Index ¶
- func AllowIfCorrectGroupPassword(c *gin.Context)
- func AllowIfGroupIsNotFull(c *gin.Context)
- func AllowIfGroupIsOpen(c *gin.Context)
- func AllowIfUserIsMember(c *gin.Context)
- func AllowIfUserIsNotMember(c *gin.Context)
- func AllowIfUserIsNotOwner(c *gin.Context)
- func AllowIfUserIsOwner(c *gin.Context)
- func AuthenticateRequests(c *gin.Context)
- func GroupObject(c *gin.Context)
- func GroupRequestBody(c *gin.Context)
- func UserRequestBody(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowIfCorrectGroupPassword ¶
AllowIfCorrectGroupPassword allows requests if the group password is correct.
func AllowIfGroupIsNotFull ¶
AllowIfGroupIsNotFull allows requests for groups that are not yet full.
func AllowIfGroupIsOpen ¶
AllowIfGroupIsOpen allows requests if the group is open.
func AllowIfUserIsMember ¶
AllowIfUserIsMember allows requests on groups where the user is a member.
func AllowIfUserIsNotMember ¶
AllowIfUserIsNotMember allows requests on groups where the user is not a member.
func AllowIfUserIsNotOwner ¶
AllowIfUserIsNotOwner allows requests on groups where the user is not the owner.
func AllowIfUserIsOwner ¶
AllowIfUserIsOwner allows requests on groups where the user is the owner.
func AuthenticateRequests ¶
AuthenticateRequests checks if the request is authorized.
This checks the JWT in the `Authorization` header.
func GroupObject ¶
GroupObject adds the Group entry to the context.
func GroupRequestBody ¶
GroupRequestBody adds the request body to the context.
func UserRequestBody ¶
UserRequestBody adds the parsed request body to the context.
Types ¶
This section is empty.