Versions in this module Expand all Collapse all v0 v0.12.1 Aug 11, 2020 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 CollectAllFields(ctx context.Context) []string + func DefaultErrorPresenter(ctx context.Context, err error) *gqlerror.Error + func DefaultRecover(ctx context.Context, err interface{}) 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 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 *fasthttp.RequestCtx) + func UnmarshalAny(v interface{}) (interface{}, error) + func UnmarshalBoolean(v interface{}) (bool, error) + func UnmarshalFloat(v interface{}) (float64, error) + func UnmarshalID(v interface{}) (string, 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 WithFieldContext(ctx context.Context, rc *FieldContext) context.Context + func WithOperationContext(ctx context.Context, rc *OperationContext) context.Context + func WithResponseContext(ctx context.Context, presenterFunc ErrorPresenterFunc, recoverFunc RecoverFunc) 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 + Selections ast.SelectionSet + func CollectFields(reqCtx *OperationContext, selSet ast.SelectionSet, satisfies []string) []CollectedField + func CollectFieldsCtx(ctx context.Context, satisfies []string) []CollectedField + 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 ExtendedError interface + Extensions func() map[string]interface{} + type FieldContext struct + Args map[string]interface{} + Field CollectedField + Index *int + IsMethod 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 + Values []Marshaler + func NewFieldSet(fields []CollectedField) *FieldSet + func (m *FieldSet) Concurrently(i int, f func() Marshaler) + func (m *FieldSet) Dispatch() + 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(ctx context.Context, key string, value interface{}) + func (m MapCache) Get(ctx 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 MarshalUpload(f Upload) Marshaler + type Mutation struct + type NoCache struct + func (n NoCache) Add(ctx context.Context, key string, value interface{}) + func (n NoCache) Get(ctx context.Context, key string) (value interface{}, ok bool) + type OperationContext struct + DisableIntrospection bool + Doc *ast.QueryDocument + Operation *ast.OperationDefinition + OperationName string + RawQuery string + Recover RecoverFunc + ResolverMiddleware FieldMiddleware + 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) 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 Query struct + type RawParams struct + Extensions map[string]interface{} + 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{} + 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 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(ctx *fasthttp.RequestCtx, exec GraphExecutor) + Supports func(ctx *fasthttp.RequestCtx) bool + type Unmarshaler interface + UnmarshalGQL func(v interface{}) error + type Upload struct + ContentType string + File io.Reader + Filename string + Size int64 + func UnmarshalUpload(v interface{}) (Upload, error) + type WriterFunc func(writer io.Writer) + func (f WriterFunc) MarshalGQL(w io.Writer)