Versions in this module Expand all Collapse all v0 v0.18.0 Jul 16, 2023 Changes in this version + const Version + var False = &lit + var Now = time.Now + var Null = &lit + var True = &lit + func AddError(ctx context.Context, err error) + func AddErrorf(ctx context.Context, format string, args ...interface{}) + func BuildUnmarshalerMap(unmarshaler ...interface{}) map[reflect.Type]reflect.Value + func CoerceList(v interface{}) []interface + func CollectAllFields(ctx context.Context) []string + func DefaultErrorPresenter(ctx context.Context, err error) *gqlerror.Error + func DefaultRecover(ctx context.Context, err interface{}) error + func ErrorOnPath(ctx context.Context, err error) error + func GetErrors(ctx context.Context) gqlerror.List + func GetExtension(ctx context.Context, name string) interface + func GetExtensions(ctx context.Context) map[string]interface + func GetFieldErrors(ctx context.Context, rctx *FieldContext) gqlerror.List + func GetPath(ctx context.Context) ast.Path + func GetStartTime(ctx context.Context) time.Time + func HasFieldError(ctx context.Context, rctx *FieldContext) bool + func HasOperationContext(ctx context.Context) bool + func Recover(ctx context.Context, err interface{}) (userMessage error) + func RegisterExtension(ctx context.Context, key string, value interface{}) + func StartOperationTrace(ctx context.Context) context.Context + func UnmarshalAny(v interface{}) (interface{}, error) + func UnmarshalBoolean(v interface{}) (bool, error) + func UnmarshalFloat(v interface{}) (float64, error) + func UnmarshalFloatContext(ctx context.Context, v interface{}) (float64, error) + func UnmarshalID(v interface{}) (string, error) + func UnmarshalInputFromContext(ctx context.Context, raw, v interface{}) error + func UnmarshalInt(v interface{}) (int, error) + func UnmarshalInt32(v interface{}) (int32, error) + func UnmarshalInt64(v interface{}) (int64, error) + func UnmarshalIntID(v interface{}) (int, error) + func UnmarshalMap(v interface{}) (map[string]interface{}, error) + func UnmarshalString(v interface{}) (string, error) + func UnmarshalTime(v interface{}) (time.Time, error) + func UnmarshalUint(v interface{}) (uint, error) + func UnmarshalUint32(v interface{}) (uint32, error) + func UnmarshalUint64(v interface{}) (uint64, error) + func WithFieldContext(ctx context.Context, rc *FieldContext) context.Context + func WithFreshResponseContext(ctx context.Context) context.Context + func WithOperationContext(ctx context.Context, rc *OperationContext) context.Context + func WithPathContext(ctx context.Context, fic *PathContext) context.Context + func WithResponseContext(ctx context.Context, presenterFunc ErrorPresenterFunc, recoverFunc RecoverFunc) context.Context + func WithRootFieldContext(ctx context.Context, rc *RootFieldContext) context.Context + func WithUnmarshalerMap(ctx context.Context, maps map[reflect.Type]reflect.Value) context.Context + type Array []Marshaler + func (a Array) MarshalGQL(writer io.Writer) + type Cache interface + Add func(ctx context.Context, key string, value interface{}) + Get func(ctx context.Context, key string) (value interface{}, ok bool) + type CollectedField struct + Deferrable *Deferrable + Selections ast.SelectionSet + func CollectFields(reqCtx *OperationContext, selSet ast.SelectionSet, satisfies []string) []CollectedField + func CollectFieldsCtx(ctx context.Context, satisfies []string) []CollectedField + type ContextMarshaler interface + MarshalGQLContext func(ctx context.Context, w io.Writer) error + func MarshalFloatContext(f float64) ContextMarshaler + type ContextUnmarshaler interface + UnmarshalGQLContext func(ctx context.Context, v interface{}) error + type ContextWriterFunc func(ctx context.Context, writer io.Writer) error + func (f ContextWriterFunc) MarshalGQLContext(ctx context.Context, w io.Writer) error + type Deferrable struct + Label string + type DeferredGroup struct + Context context.Context + FieldSet *FieldSet + Label string + Path ast.Path + type DeferredResult struct + Errors gqlerror.List + Label string + Path ast.Path + Result Marshaler + type ErrorPresenterFunc func(ctx context.Context, err error) *gqlerror.Error + type ExecutableSchema interface + Complexity func(typeName, fieldName string, childComplexity int, args map[string]interface{}) (int, bool) + Exec func(ctx context.Context) ResponseHandler + Schema func() *ast.Schema + type ExecutableSchemaMock struct + ComplexityFunc func(typeName string, fieldName string, childComplexity int, ...) (int, bool) + ExecFunc func(ctx context.Context) ResponseHandler + SchemaFunc func() *ast.Schema + func (mock *ExecutableSchemaMock) Complexity(typeName string, fieldName string, childComplexity int, ...) (int, bool) + func (mock *ExecutableSchemaMock) ComplexityCalls() []struct{ ... } + func (mock *ExecutableSchemaMock) Exec(ctx context.Context) ResponseHandler + func (mock *ExecutableSchemaMock) ExecCalls() []struct{ ... } + func (mock *ExecutableSchemaMock) Schema() *ast.Schema + func (mock *ExecutableSchemaMock) SchemaCalls() []struct{} + type FieldContext struct + Args map[string]interface{} + Child func(context.Context, CollectedField) (*FieldContext, error) + Field CollectedField + Index *int + IsMethod bool + IsResolver bool + Object string + Parent *FieldContext + Result interface{} + func GetFieldContext(ctx context.Context) *FieldContext + func (r *FieldContext) Path() ast.Path + type FieldInterceptor interface + InterceptField func(ctx context.Context, next Resolver) (res interface{}, err error) + type FieldMiddleware func(ctx context.Context, next Resolver) (res interface{}, err error) + type FieldSet struct + Invalids uint32 + Values []Marshaler + func NewFieldSet(fields []CollectedField) *FieldSet + func (m *FieldSet) AddField(field CollectedField) + func (m *FieldSet) Concurrently(i int, f func(context.Context) Marshaler) + func (m *FieldSet) Dispatch(ctx context.Context) + func (m *FieldSet) MarshalGQL(writer io.Writer) + type FieldStats struct + ArgumentsCompleted time.Time + Completed time.Time + Started time.Time + type GraphExecutor interface + CreateOperationContext func(ctx context.Context, params *RawParams) (*OperationContext, gqlerror.List) + DispatchError func(ctx context.Context, list gqlerror.List) *Response + DispatchOperation func(ctx context.Context, rc *OperationContext) (ResponseHandler, context.Context) + type HandlerExtension interface + ExtensionName func() string + Validate func(schema ExecutableSchema) error + type MapCache map[string]interface + func (m MapCache) Add(_ context.Context, key string, value interface{}) + func (m MapCache) Get(_ context.Context, key string) (value interface{}, ok bool) + type Marshaler interface + MarshalGQL func(w io.Writer) + func MarshalAny(v interface{}) Marshaler + func MarshalBoolean(b bool) Marshaler + func MarshalFloat(f float64) Marshaler + func MarshalID(s string) Marshaler + func MarshalInt(i int) Marshaler + func MarshalInt32(i int32) Marshaler + func MarshalInt64(i int64) Marshaler + func MarshalIntID(i int) Marshaler + func MarshalMap(val map[string]interface{}) Marshaler + func MarshalString(s string) Marshaler + func MarshalTime(t time.Time) Marshaler + func MarshalUint(i uint) Marshaler + func MarshalUint32(i uint32) Marshaler + func MarshalUint64(i uint64) Marshaler + func MarshalUpload(f Upload) Marshaler + func WrapContextMarshaler(ctx context.Context, m ContextMarshaler) Marshaler + type Mutation struct + type NoCache struct + func (n NoCache) Add(_ context.Context, _ string, _ interface{}) + func (n NoCache) Get(_ context.Context, _ string) (value interface{}, ok bool) + type Omittable struct + func OmittableOf(value T) Omittable[T] + func (o Omittable[T]) IsSet() bool + func (o Omittable[T]) Value() T + func (o Omittable[T]) ValueOK() (T, bool) + type OperationContext struct + DisableIntrospection bool + Doc *ast.QueryDocument + Headers http.Header + Operation *ast.OperationDefinition + OperationName string + RawQuery string + RecoverFunc RecoverFunc + ResolverMiddleware FieldMiddleware + RootResolverMiddleware RootFieldMiddleware + Stats Stats + Variables map[string]interface{} + func GetOperationContext(ctx context.Context) *OperationContext + func (c *OperationContext) Error(ctx context.Context, err error) + func (c *OperationContext) Errorf(ctx context.Context, format string, args ...interface{}) + func (c *OperationContext) Recover(ctx context.Context, err interface{}) error + func (c *OperationContext) Validate(ctx context.Context) error + type OperationContextMutator interface + MutateOperationContext func(ctx context.Context, rc *OperationContext) *gqlerror.Error + type OperationHandler func(ctx context.Context) ResponseHandler + type OperationInterceptor interface + InterceptOperation func(ctx context.Context, next OperationHandler) ResponseHandler + type OperationMiddleware func(ctx context.Context, next OperationHandler) ResponseHandler + type OperationParameterMutator interface + MutateOperationParameters func(ctx context.Context, request *RawParams) *gqlerror.Error + type PathContext struct + Field *string + Index *int + Parent *PathContext + ParentField *FieldContext + func GetPathContext(ctx context.Context) *PathContext + func NewPathWithField(field string) *PathContext + func NewPathWithIndex(index int) *PathContext + func (fic *PathContext) Path() ast.Path + type Query struct + type RawParams struct + Extensions map[string]interface{} + Headers http.Header + OperationName string + Query string + ReadTime TraceTiming + Variables map[string]interface{} + func (p *RawParams) AddUpload(upload Upload, key, path string) *gqlerror.Error + type RecoverFunc func(ctx context.Context, err interface{}) (userMessage error) + type RequestContext = OperationContext + func GetRequestContext(ctx context.Context) *RequestContext + type Resolver func(ctx context.Context) (res interface{}, err error) + type ResolverContext = FieldContext + func GetResolverContext(ctx context.Context) *ResolverContext + type Response struct + Data json.RawMessage + Errors gqlerror.List + Extensions map[string]interface{} + HasNext *bool + Label string + Path ast.Path + func ErrorResponse(ctx context.Context, messagef string, args ...interface{}) *Response + type ResponseHandler func(ctx context.Context) *Response + func OneShot(resp *Response) ResponseHandler + type ResponseInterceptor interface + InterceptResponse func(ctx context.Context, next ResponseHandler) *Response + type ResponseMiddleware func(ctx context.Context, next ResponseHandler) *Response + type RootFieldContext struct + Field CollectedField + Object string + func GetRootFieldContext(ctx context.Context) *RootFieldContext + type RootFieldInterceptor interface + InterceptRootField func(ctx context.Context, next RootResolver) Marshaler + type RootFieldMiddleware func(ctx context.Context, next RootResolver) Marshaler + type RootResolver func(ctx context.Context) Marshaler + type Stats struct + OperationStart time.Time + Parsing TraceTiming + Read TraceTiming + Validation TraceTiming + func (c *Stats) GetExtension(name string) interface{} + func (c *Stats) SetExtension(name string, data interface{}) + type Status int + type Subscription struct + type TraceTiming struct + End time.Time + Start time.Time + type Transport interface + Do func(w http.ResponseWriter, r *http.Request, exec GraphExecutor) + Supports func(r *http.Request) bool + type Unmarshaler interface + UnmarshalGQL func(v interface{}) error + type Upload struct + ContentType string + File io.ReadSeeker + Filename string + Size int64 + func UnmarshalUpload(v interface{}) (Upload, error) + type WriterFunc func(writer io.Writer) + func (f WriterFunc) MarshalGQL(w io.Writer)