Documentation ¶
Index ¶
- type File
- type Files
- type Plugin
- type Resolver
- func (r *Resolver) ArgList() (string, error)
- func (r *Resolver) ImplementationName() string
- func (r *Resolver) ModelFromProtoFunc(def *ast.Definition, slice bool) string
- func (r *Resolver) ModelToProtoFunc(def *ast.Definition, slice bool) string
- func (r *Resolver) ProtoImplementationName() string
- func (r *Resolver) ProtoResolverBody() string
- func (r *Resolver) ResolverArgs() ([]ResolverArg, error)
- func (r *Resolver) ResolverModelFromProtoFunc() string
- func (r *Resolver) ShortProtoResolverDeclaration() (string, error)
- type ResolverArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Objects []*codegen.Object Resolvers []*Resolver Imports []*goutil.Import ProtoResolverRemainingSource string // contains filtered or unexported fields }
func (*File) ProtoResolverGoFilename ¶
func (*File) ProtoResolverImplementationName ¶
func (*File) ResolverGoFilename ¶
https://github.com/99designs/gqlgen/blob/v0.13.0/plugin/resolvergen/resolver.go#L199-L207
func (*File) ResolverImplementationName ¶
func (*File) ResolverTypeName ¶
type Files ¶
func NewFiles ¶
func NewFiles(cfg config.ResolverConfig, modelCfg config.PackageConfig, schema *ast.Schema) *Files
func (*Files) FindOrInitialize ¶
type Resolver ¶
type Resolver struct { *codegen.Field ProtoField *gqlutil.ProtoFieldDirective GQLTypeDefinition *ast.Definition // contains filtered or unexported fields }
func (*Resolver) ImplementationName ¶
func (*Resolver) ModelFromProtoFunc ¶
func (r *Resolver) ModelFromProtoFunc(def *ast.Definition, slice bool) string
func (*Resolver) ModelToProtoFunc ¶
func (r *Resolver) ModelToProtoFunc(def *ast.Definition, slice bool) string
func (*Resolver) ProtoImplementationName ¶
func (*Resolver) ProtoResolverBody ¶
func (*Resolver) ResolverArgs ¶
func (r *Resolver) ResolverArgs() ([]ResolverArg, error)
func (*Resolver) ResolverModelFromProtoFunc ¶
func (*Resolver) ShortProtoResolverDeclaration ¶
type ResolverArg ¶
type ResolverArg struct {
Name, Type string
}
Click to show internal directories.
Click to hide internal directories.