forked from cerc-io/plugeth
18 lines
365 B
Go
18 lines
365 B
Go
|
package trace
|
||
|
|
||
|
import (
|
||
|
"github.com/graph-gophers/graphql-go/errors"
|
||
|
)
|
||
|
|
||
|
type TraceValidationFinishFunc = TraceQueryFinishFunc
|
||
|
|
||
|
type ValidationTracer interface {
|
||
|
TraceValidation() TraceValidationFinishFunc
|
||
|
}
|
||
|
|
||
|
type NoopValidationTracer struct{}
|
||
|
|
||
|
func (NoopValidationTracer) TraceValidation() TraceValidationFinishFunc {
|
||
|
return func(errs []*errors.QueryError) {}
|
||
|
}
|