Documentation
¶
Overview ¶
Package interceptors is middleware to alter the graphql query
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError is returned when an internal error occurs. ErrInternalServerError = errors.New("internal server error") // ErrUnableToRetrieveUserID is returned when the user cannot be retrieved from the context ErrUnableToRetrieveUserID = errors.New("unable to retrieve user from context") )
Functions ¶
func InterceptorGroup ¶
func InterceptorGroup() ent.Interceptor
InterceptorGroup is middleware to change the Group query
func InterceptorOrganization ¶
func InterceptorOrganization() ent.Interceptor
InterceptorOrganization is middleware to change the Organization query
func InterceptorPat ¶ added in v0.3.3
func InterceptorPat() ent.Interceptor
InterceptorPat is middleware to change the PAT query
func InterceptorSubscriber ¶ added in v0.3.6
func InterceptorSubscriber() ent.Interceptor
InterceptorSubscriber is middleware to change the Subscriber query
func QueryLogger ¶
func QueryLogger(l *zap.SugaredLogger) ent.InterceptFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.