generated

package
v0.0.0-...-44a091e Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 11 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 {
	ConfirmEmailResponse struct {
		Errors     func(childComplexity int) int
		Successful func(childComplexity int) int
	}

	FieldError struct {
		Field   func(childComplexity int) int
		Message func(childComplexity int) int
	}

	Mutation struct {
		ChangePassword func(childComplexity int, credentials model.ChangePasswordInput) int
		ConfirmEmail   func(childComplexity int, token string) int
		ForgotPassword func(childComplexity int, credentials model.ForgotPasswordInput) int
		Login          func(childComplexity int, credentials model.LoginInput) int
		Logout         func(childComplexity int) int
		Register       func(childComplexity int, credentials model.RegisterInput) int
	}

	Query struct {
		Me func(childComplexity int) int
	}

	ResetPasswordResponse struct {
		Errors     func(childComplexity int) int
		Successful func(childComplexity int) int
	}

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

	UserResponse struct {
		Errors func(childComplexity int) int
		User   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 {
	ConfirmEmail(ctx context.Context, token string) (*model.ConfirmEmailResponse, error)
	Login(ctx context.Context, credentials model.LoginInput) (*model.UserResponse, error)
	Logout(ctx context.Context) (bool, error)
	Register(ctx context.Context, credentials model.RegisterInput) (*model.UserResponse, error)
	ForgotPassword(ctx context.Context, credentials model.ForgotPasswordInput) (*model.ResetPasswordResponse, error)
	ChangePassword(ctx context.Context, credentials model.ChangePasswordInput) (*model.ResetPasswordResponse, error)
}

type QueryResolver

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

type ResolverRoot

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

type UserResolver

type UserResolver interface {
	CreatedAt(ctx context.Context, obj *model.User) (int, error)
	UpdatedAt(ctx context.Context, obj *model.User) (int, error)
}

Jump to

Keyboard shortcuts

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