Versions in this module Expand all Collapse all v0 v0.0.13 Feb 20, 2022 v0.0.12 Feb 20, 2022 Changes in this version + const OperationKind + func LoadQuerySources(queryFileNames []string) ([]*ast.Source, error) + func ParseQueryDocuments(schema *ast.Schema, querySources []*ast.Source) (*ast.QueryDocument, error) + func QueryDocumentsByOperations(schema *ast.Schema, operations ast.OperationList) ([]*ast.QueryDocument, error) + func RenderTemplate(cfg *config.Config, types []*Type, ptrTypes []PtrType, operations []*Operation, ...) error + type Argument struct + Type types.Type + Variable string + type FieldPath struct + Kind ast.DefinitionKind + func NewFieldPath(kind ast.DefinitionKind, name string) FieldPath + func (p FieldPath) Name() string + func (p FieldPath) String() string + func (p FieldPath) With(n string) FieldPath + type MapField struct + Name string + Type types.Type + type Operation struct + Args []*Argument + Name string + Operation string + OperationType string + ResponseType types.Type + VariableDefinitions ast.VariableDefinitionList + func NewOperation(operation *OperationResponse, queryDocument *ast.QueryDocument, ...) *Operation + type OperationResponse struct + Name string + Operation *ast.OperationDefinition + Type types.Type + type Plugin struct + Cfg *config.Config + Client gqlgenCfg.PackageConfig + GenerateConfig *config.GenerateConfig + func New(cfg *config.Config) *Plugin + func (p *Plugin) MutateConfig(cfg *gqlgenCfg.Config) error + func (p *Plugin) Name() string + type PtrType struct + Name string + Type types.Type + type ResponseField struct + IsFragmentSpread bool + IsInlineFragment bool + Name string + ResponseFields ResponseFieldList + Tags []string + Type types.Type + type ResponseFieldList []*ResponseField + func (rs ResponseFieldList) IsBasicType() bool + func (rs ResponseFieldList) IsFragment() bool + func (rs ResponseFieldList) IsStructType() bool + type Source struct + func NewSource(schema *ast.Schema, queryDocument *ast.QueryDocument, ...) *Source + func (s *Source) ExtraTypes() error + func (s *Source) Fragments() error + func (s *Source) OperationResponses() ([]*OperationResponse, error) + func (s *Source) Operations(queryDocuments []*ast.QueryDocument, operationResponses []*OperationResponse) []*Operation + type SourceGenerator struct + func NewSourceGenerator(cfg *config.Config, ccfg *config2.Config, client config.PackageConfig) *SourceGenerator + func (r *SourceGenerator) AstTypeToType(path FieldPath, fields ResponseFieldList, typ *ast.Type) types.Type + func (r *SourceGenerator) GenTypes() []*Type + func (r *SourceGenerator) GetGenType(name string) *Type + func (r *SourceGenerator) GetNamedType(fullname string) types.Type + func (r *SourceGenerator) NewResponseField(path FieldPath, selection ast.Selection) *ResponseField + func (r *SourceGenerator) NewResponseFields(path FieldPath, selectionSet *ast.SelectionSet) ResponseFieldList + func (r *SourceGenerator) OperationArguments(variableDefinitions ast.VariableDefinitionList) []*Argument + func (r *SourceGenerator) PtrTypes() []PtrType + func (r *SourceGenerator) RegisterGenType(name string, typ *Type) + type Type struct + Consts []*types.Const + MapOpt []MapField + MapReq []MapField + Name string + Path FieldPath + RefType *types.Named + Type types.Type + UnmarshalTypes map[string]TypeTarget + func (t Type) IsInputMap() bool + type TypeTarget struct + Name string + Type types.Type