interceptors

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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