Versions in this module Expand all Collapse all v0 v0.10.4 Apr 28, 2020 Changes in this version + func GenerateCode(data *Data) error + type ArgSet struct + Args []*FieldArgument + FuncDecl string + type Data struct + ComplexityRoots map[string]*Object + Config *config.Config + Directives DirectiveList + Inputs Objects + Interfaces map[string]*Interface + MutationRoot *Object + Objects Objects + QueryRoot *Object + ReferencedTypes map[string]*config.TypeReference + Schema *ast.Schema + SchemaStr map[string]string + SubscriptionRoot *Object + func BuildData(cfg *config.Config) (*Data, error) + func (a *Data) Args() map[string][]*FieldArgument + type Directive struct + Args []*FieldArgument + Builtin bool + Name string + func (d *Directive) ArgsFunc() string + func (d *Directive) CallArgs() string + func (d *Directive) Declaration() string + func (d *Directive) IsLocation(location ...ast.DirectiveLocation) bool + func (d *Directive) ResolveArgs(obj string, next int) string + type DirectiveList map[string]*Directive + func (dl DirectiveList) LocationDirectives(location string) DirectiveList + type Field struct + Args []*FieldArgument + Default interface{} + Directives []*Directive + GoFieldName string + GoFieldType GoFieldType + GoReceiverName string + IsResolver bool + MethodHasContext bool + NoErr bool + Object *Object + Stream bool + TypeReference *config.TypeReference + func (f *Field) ArgsFunc() string + func (f *Field) CallArgs() string + func (f *Field) ComplexityArgs() string + func (f *Field) ComplexitySignature() string + func (f *Field) DirectiveObjName() string + func (f *Field) GoNameUnexported() string + func (f *Field) HasDirectives() bool + func (f *Field) ImplDirectives() []*Directive + func (f *Field) IsConcurrent() bool + func (f *Field) IsMap() bool + func (f *Field) IsMethod() bool + func (f *Field) IsReserved() bool + func (f *Field) IsVariable() bool + func (f *Field) ResolverType() string + func (f *Field) ShortInvocation() string + func (f *Field) ShortResolverDeclaration() string + type FieldArgument struct + Default interface{} + Directives []*Directive + Object *Object + TypeReference *config.TypeReference + Value interface{} + VarName string + func (f *FieldArgument) DirectiveObjName() string + func (f *FieldArgument) ImplDirectives() []*Directive + func (f *FieldArgument) Stream() bool + type GoFieldType int + const GoFieldMap + const GoFieldMethod + const GoFieldUndefined + const GoFieldVariable + type Interface struct + Implementors []InterfaceImplementor + InTypemap bool + Type types.Type + type InterfaceImplementor struct + Interface *Interface + Type types.Type + func (i *InterfaceImplementor) ValueReceiver() bool + type Object struct + Directives []*Directive + DisableConcurrency bool + Fields []*Field + Implements []*ast.Definition + ResolverInterface types.Type + Root bool + Stream bool + Type types.Type + func (o *Object) Description() string + func (o *Object) HasDirectives() bool + func (o *Object) HasResolvers() bool + func (o *Object) HasUnmarshal() bool + func (o *Object) Implementors() string + func (o *Object) IsConcurrent() bool + func (o *Object) IsReserved() bool + func (o *Object) Reference() types.Type + func (o *Object) UniqueFields() map[string][]*Field + type Objects []*Object + func (os Objects) ByName(name string) *Object