generated

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Query struct {
		Me         func(childComplexity int) int
		ServerInfo func(childComplexity int) int
	}

	ServerInfo struct {
		Commit  func(childComplexity int) int
		Date    func(childComplexity int) int
		Version func(childComplexity int) int
	}

	User struct {
		Email func(childComplexity int) int
		Name  func(childComplexity int) int
	}
}

type DirectiveRoot

type DirectiveRoot struct {
}

type QueryResolver

type QueryResolver interface {
	Me(ctx context.Context) (*model.User, error)
	ServerInfo(ctx context.Context) (*model.ServerInfo, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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