logrusextension

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(ctx context.Context) *logrus.Entry

Types

type LogrusExtension

type LogrusExtension struct {
	Logger      *logrus.Entry
	UseNewRelic bool
}

func (LogrusExtension) ExtensionName

func (n LogrusExtension) ExtensionName() string

func (LogrusExtension) InterceptField

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

func (LogrusExtension) Validate

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

Jump to

Keyboard shortcuts

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