Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicHandler ¶
PanicHandler logs all panics from graphql handler.
Sec: DON'T log requests because of sensitive data.
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". And removes client errors if present. It prevents the client user from fixing the wrong issues.
func (ErrorModifier) Validate ¶
func (interceptor ErrorModifier) Validate(schema graphql.ExecutableSchema) error
Validate an interface impl does nothing.
Click to show internal directories.
Click to hide internal directories.