Versions in this module Expand all Collapse all v0 v0.4.4 Aug 21, 2018 Changes in this version + func Generate(cfg Config) error + func GenerateServer(cfg Config, filename string) error + type BindError struct + func (b BindError) Error() string + type BindErrors []BindError + func (b BindErrors) Error() string + type Build struct + Directives []*Directive + Imports []*Import + Inputs Objects + Interfaces []*Interface + MutationRoot *Object + Objects Objects + PackageName string + QueryRoot *Object + SchemaFilename string + SchemaRaw string + SubscriptionRoot *Object + type Config struct + Exec PackageConfig + FilePath string + Model PackageConfig + Models TypeMap + Resolver PackageConfig + SchemaFilename string + SchemaStr string + func DefaultConfig() *Config + func LoadConfig(filename string) (*Config, error) + func LoadConfigFromDefaultLocations() (*Config, error) + func (cfg *Config) Check() error + type Directive struct + Args []FieldArgument + Name string + func (d *Directive) CallArgs() string + func (d *Directive) Declaration() string + type Enum struct + Values []EnumValue + type EnumValue struct + Description string + Name string + type Field struct + Args []FieldArgument + Default interface{} + ForceResolver bool + GQLName string + GoFieldName string + GoFieldType GoFieldType + GoReceiverName string + NoErr bool + Object *Object + func (f *Field) CallArgs() string + func (f *Field) GoNameExported() string + func (f *Field) GoNameUnexported() string + func (f *Field) IsConcurrent() bool + func (f *Field) IsMethod() bool + func (f *Field) IsResolver() bool + func (f *Field) IsVariable() bool + func (f *Field) ResolverDeclaration() string + func (f *Field) ResolverType() string + func (f *Field) ShortInvocation() string + func (f *Field) ShortResolverDeclaration() string + func (f *Field) WriteJson() string + type FieldArgument struct + Default interface{} + GQLName string + GoVarName string + Object *Object + func (f *FieldArgument) Stream() bool + type GoFieldType int + const GoFieldMethod + const GoFieldUndefined + const GoFieldVariable + type Import struct + Name string + Path string + func (i *Import) Alias() string + func (i *Import) Write() string + type Imports struct + type Interface struct + Implementors []InterfaceImplementor + type InterfaceImplementor struct + ValueReceiver bool + type Model struct + Fields []ModelField + type ModelBuild struct + Enums []Enum + Imports []*Import + Models []Model + PackageName string + type ModelField struct + GQLName string + GoFKName string + GoFKType string + GoFieldName string + type NamedType struct + GQLType string + IsInput bool + IsInterface bool + IsScalar bool + Marshaler *Ref + func (t NamedType) IsMarshaled() bool + type NamedTypes map[string]*NamedType + type Object struct + DisableConcurrency bool + Fields []Field + ResolverInterface *Ref + Root bool + Satisfies []string + Stream bool + func (o *Object) HasResolvers() bool + func (o *Object) Implementors() string + type Objects []*Object + func (os Objects) ByName(name string) *Object + type PackageConfig struct + Filename string + Package string + Type string + func (c *PackageConfig) Check() error + func (c *PackageConfig) Dir() string + func (c *PackageConfig) ImportPath() string + func (c *PackageConfig) IsDefined() bool + type Ref struct + GoType string + Import *Import + IsUserDefined bool + Package string + func (t Ref) FullName() string + func (t Ref) PkgDot() string + type ResolverBuild struct + Imports []*Import + Objects Objects + PackageName string + ResolverFound bool + ResolverType string + type ServerBuild struct + ExecPackageName string + Imports []*Import + PackageName string + ResolverPackageName string + type Type struct + AliasedType *Ref + Modifiers []string + func (t *Type) StripPtr() + func (t Type) FullSignature() string + func (t Type) IsPtr() bool + func (t Type) IsSlice() bool + func (t Type) Marshal(val string) string + func (t Type) Signature() string + func (t Type) Unmarshal(result, raw string) string + type TypeMap map[string]TypeMapEntry + func (tm TypeMap) Check() error + func (tm TypeMap) Exists(typeName string) bool + type TypeMapEntry struct + Fields map[string]TypeMapField + Model string + type TypeMapField struct + FieldName string + Resolver bool