Documentation ¶
Index ¶
- type Config
- type NrExtension
- func (n NrExtension) ExtensionName() string
- func (n NrExtension) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)
- func (n NrExtension) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
- func (n NrExtension) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
- func (n NrExtension) Validate(schema graphql.ExecutableSchema) error
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 (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
Click to show internal directories.
Click to hide internal directories.