generated

package
v0.0.0-...-2db6053 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 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 {
	AuthUser struct {
		Email  func(childComplexity int) int
		ID     func(childComplexity int) int
		Name   func(childComplexity int) int
		RoleID func(childComplexity int) int
	}

	Mutation struct {
		AccountLogin       func(childComplexity int, email string, pwd string) int
		AccountLogout      func(childComplexity int) int
		AccountVerifyEmail func(childComplexity int, token *string) int
	}

	Query struct {
		Me func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	AccountVerifyEmail(ctx context.Context, token *string) (bool, error)
	AccountLogin(ctx context.Context, email string, pwd string) (*model.AuthUser, error)
	AccountLogout(ctx context.Context) (bool, error)
}

type QueryResolver

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

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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