generated

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 14 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 {
	CreateUserPayload struct {
		ID func(childComplexity int) int
	}

	LoginPayload struct {
		AccessToken  func(childComplexity int) int
		RefreshToken func(childComplexity int) int
	}

	LogoutPayload struct {
		Message func(childComplexity int) int
	}

	Mutation struct {
		CreateUser func(childComplexity int, input model.CreateUserInput) int
		Login      func(childComplexity int, input model.LoginInput) int
		Logout     func(childComplexity int) int
	}

	PingPayload struct {
		Message func(childComplexity int) int
	}

	Query struct {
		Ping func(childComplexity int) int
	}

	User struct {
		CreatedAt func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		Email     func(childComplexity int) int
		ID        func(childComplexity int) int
		Password  func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	Authenticated func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type MutationResolver

type MutationResolver interface {
	CreateUser(ctx context.Context, input model.CreateUserInput) (*model.CreateUserPayload, error)
	Login(ctx context.Context, input model.LoginInput) (*model.LoginPayload, error)
	Logout(ctx context.Context) (*model.LogoutPayload, error)
}

type QueryResolver

type QueryResolver interface {
	Ping(ctx context.Context) (*model.PingPayload, error)
}

type ResolverRoot

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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