nrextension

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.2

type Config struct {
	// Reports Errors in New Relic if a panic is encountered during resolver execution.
	NoticeErrorOnResolverPanic bool `env:"NEW_RELIC_NOTICE_PANIC"`

	// Reports Errors in New Relic if an error is returned by the resolver
	NoticeErrorOnGraphQLError bool `env:"NEW_RELIC_NOTICE_ERROR"`
}

type NrExtension

type NrExtension struct {
	Config Config
}

func NewNrExtension added in v0.1.2

func NewNrExtension(cfg Config) NrExtension

func (NrExtension) ExtensionName

func (n NrExtension) ExtensionName() string

func (NrExtension) InterceptField

func (n NrExtension) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)

func (NrExtension) InterceptOperation

func (n NrExtension) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler

func (NrExtension) InterceptResponse

func (n NrExtension) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (NrExtension) Validate

func (n NrExtension) Validate(schema graphql.ExecutableSchema) error

Jump to

Keyboard shortcuts

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