generated

package
v0.0.0-...-ecac287 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 10 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 {
	Mutation struct {
		RefreshToken func(childComplexity int, token *model.RefreshToken) int
		Register     func(childComplexity int, registerInput *model.RegisterInput) int
		UserAuth     func(childComplexity int, auth *model.Authenticate) int
	}

	Query struct {
	}

	Token struct {
		Jwt func(childComplexity int) int
	}

	User struct {
		ID       func(childComplexity int) int
		Username func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Register(ctx context.Context, registerInput *model.RegisterInput) (*model.Token, error)
	UserAuth(ctx context.Context, auth *model.Authenticate) (*model.Token, error)
	RefreshToken(ctx context.Context, token *model.RefreshToken) (*model.Token, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
}

Jump to

Keyboard shortcuts

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