Documentation ¶
Index ¶
- func GenerateGoMethodsForPackage(s *schema.Schema, genConfig *config.GeneratorConfig, ...) (*[]GoMethod, error)
- func GenerateGoTypesForPackage(s *schema.Schema, genConfig *config.GeneratorConfig, ...) (*[]GoStruct, *[]GoEnum, *[]GoScalar, *[]GoInterface, error)
- type GoEnum
- type GoEnumValue
- type GoInterface
- type GoMethod
- type GoMethodInputType
- type GoMethodSignature
- type GoScalar
- type GoStruct
- type GoStructField
- type GolangGenerator
- type QueryVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateGoMethodsForPackage ¶ added in v0.2.0
func GenerateGoMethodsForPackage(s *schema.Schema, genConfig *config.GeneratorConfig, pkgConfig *config.PackageConfig) (*[]GoMethod, error)
func GenerateGoTypesForPackage ¶
func GenerateGoTypesForPackage(s *schema.Schema, genConfig *config.GeneratorConfig, pkgConfig *config.PackageConfig, expandedTypes *[]*schema.Type) (*[]GoStruct, *[]GoEnum, *[]GoScalar, *[]GoInterface, error)
Types ¶
type GoEnum ¶
type GoEnum struct { Name string Description string Values []GoEnumValue }
type GoEnumValue ¶
type GoInterface ¶
type GoMethod ¶ added in v0.2.0
type GoMethod struct { Description string Name string QueryVars []QueryVar Signature GoMethodSignature }
type GoMethodInputType ¶ added in v0.2.0
type GoMethodSignature ¶ added in v0.2.0
type GoMethodSignature struct { Input []GoMethodInputType Return []string }
type GoStruct ¶
type GoStruct struct { Name string Description string Fields []GoStructField Implements []string }
type GoStructField ¶
type GolangGenerator ¶
type GolangGenerator struct { Types []GoStruct PackageName string Enums []GoEnum Imports []string Scalars []GoScalar Interfaces []GoInterface Methods []GoMethod }
GolangGenerator is enough information to generate Go code for a single package.
Click to show internal directories.
Click to hide internal directories.