mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-30 14:42:00 -08:00
26 lines
599 B
Go
26 lines
599 B
Go
|
package trace
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/graph-gophers/graphql-go/errors"
|
||
|
)
|
||
|
|
||
|
type TraceValidationFinishFunc = TraceQueryFinishFunc
|
||
|
|
||
|
// Deprecated: use ValidationTracerContext.
|
||
|
type ValidationTracer interface {
|
||
|
TraceValidation() TraceValidationFinishFunc
|
||
|
}
|
||
|
|
||
|
type ValidationTracerContext interface {
|
||
|
TraceValidation(ctx context.Context) TraceValidationFinishFunc
|
||
|
}
|
||
|
|
||
|
type NoopValidationTracer struct{}
|
||
|
|
||
|
// Deprecated: use a Tracer which implements ValidationTracerContext.
|
||
|
func (NoopValidationTracer) TraceValidation() TraceValidationFinishFunc {
|
||
|
return func(errs []*errors.QueryError) {}
|
||
|
}
|