Documentation ¶
Overview ¶
Package hooks is middleware to alter the graphql mutation
Index ¶
- Variables
- func HookEmailVerificationToken() ent.Hook
- func HookGroup() ent.Hook
- func HookGroupAuthz() ent.Hook
- func HookOrganization() ent.Hook
- func HookOrganizationAuthz() ent.Hook
- func HookPasswordResetToken() ent.Hook
- func HookPersonalAccessToken() ent.Hook
- func HookSession() ent.Hook
- func HookUser() ent.Hook
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError is returned when an internal error occurs. ErrInternalServerError = errors.New("internal server error") // ErrPersonalOrgsNoChildren is returned when personal org attempts to add a child org ErrPersonalOrgsNoChildren = errors.New("personal organizations are not allowed to have child organizations") // ErrPersonalOrgsNoUser is returned when personal org has no user associated, so no permissions can be added ErrPersonalOrgsNoUser = errors.New("personal organizations missing user association") )
Functions ¶
func HookEmailVerificationToken ¶ added in v0.2.2
HookEmailVerificationToken runs on accesstoken mutations and sets expires
func HookGroupAuthz ¶
HookGroupAuthz runs on group mutations to setup or remove relationship tuples
func HookOrganization ¶
HookOrganization runs on org mutations to set default values that are not provided
func HookOrganizationAuthz ¶
HookOrganizationAuthz runs on organization mutations to setup or remove relationship tuples
func HookPasswordResetToken ¶ added in v0.2.3
HookPasswordResetToken runs on reset token mutations and sets expires
func HookPersonalAccessToken ¶
HookPersonalAccessToken runs on accesstoken mutations and sets expires
func HookSession ¶
HookSession runs on refresh token creation and sets expires fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.