tracer

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldFinishFunc

type FieldFinishFunc = func([]byte, *errors.QueryError)

type LegacyNoopValidationTracer deprecated

type LegacyNoopValidationTracer struct{}

Deprecated: use a Tracer which implements ValidationTracerContext.

func (LegacyNoopValidationTracer) TraceValidation deprecated

func (LegacyNoopValidationTracer) TraceValidation() func([]*errors.QueryError)

Deprecated: use a Tracer which implements ValidationTracerContext.

type LegacyValidationTracer deprecated

type LegacyValidationTracer interface {
	TraceValidation() func([]*errors.QueryError)
}

Deprecated: use ValidationTracerContext instead.

type QueryFinishFunc

type QueryFinishFunc = func([]byte, []*errors.QueryError)

type Tracer

type Tracer interface {
	TraceQuery(ctx context.Context, queryString string, operationName string, variables map[string]interface{}, varTypes map[string]*introspection.Type) (context.Context, QueryFinishFunc)
	TraceField(ctx context.Context, label, typeName, fieldName string, trivial bool, args map[string]interface{}) (context.Context, FieldFinishFunc)
}

type ValidationFinishFunc

type ValidationFinishFunc = func([]*errors.QueryError)

type ValidationTracer

type ValidationTracer interface {
	TraceValidation(ctx context.Context) ValidationFinishFunc
}

Jump to

Keyboard shortcuts

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