generated

package
v0.0.0-...-74dec24 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT 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 {
	Account struct {
		DocumentNumber func(childComplexity int) int
		ID             func(childComplexity int) int
	}

	Mutation struct {
		CreateAccount func(childComplexity int, input model.NewAccount) int
	}

	OperationsType struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
	}

	Query struct {
		Account         func(childComplexity int, id int) int
		Accounts        func(childComplexity int) int
		OperationsTypes func(childComplexity int) int
		Transactions    func(childComplexity int) int
	}

	Transaction struct {
		Account          func(childComplexity int) int
		AccountID        func(childComplexity int) int
		Amount           func(childComplexity int) int
		EventDate        func(childComplexity int) int
		ID               func(childComplexity int) int
		OperationsType   func(childComplexity int) int
		OperationsTypeID 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 {
	CreateAccount(ctx context.Context, input model.NewAccount) (*model.Account, error)
}

type QueryResolver

type QueryResolver interface {
	Accounts(ctx context.Context) ([]*model.Account, error)
	Account(ctx context.Context, id int) (*model.Account, error)
	Transactions(ctx context.Context) ([]*model.Transaction, error)
	OperationsTypes(ctx context.Context) ([]*model.OperationsType, 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