resolvergen

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package resolvergen provides the a resolver template for the gqlgen resolver plugin to override the default resolver functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverPlugin

type ResolverPlugin struct {
	*resolvergen.Plugin
}

ResolverPlugin is a gqlgen plugin to generate resolver functions

func New

func New() *ResolverPlugin

New returns a new resolver plugin

func (ResolverPlugin) GenerateCode

func (r ResolverPlugin) GenerateCode(data *codegen.Data) error

GenerateCode implements api.CodeGenerator

func (ResolverPlugin) Implement

func (r ResolverPlugin) Implement(s string, f *codegen.Field) (val string)

Implement gqlgen api.ResolverImplementer

func (ResolverPlugin) Name

func (r ResolverPlugin) Name() string

Name returns the name of the plugin This name must match the upstream resolvergen to replace during code generation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL