interceptors

package
v0.0.0-...-f2f1368 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorModifier

type ErrorModifier struct{}

ErrorModifier intercepts error messages and modifies them accordingly.

func (ErrorModifier) ExtensionName

func (interceptor ErrorModifier) ExtensionName() string

ExtensionName returns extension's name.

func (ErrorModifier) InterceptResponse

func (interceptor ErrorModifier) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

InterceptResponse modifies error messages with "internal system error".

func (ErrorModifier) Validate

func (interceptor ErrorModifier) Validate(schema graphql.ExecutableSchema) error

Validate an interface impl does nothing.

Jump to

Keyboard shortcuts

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