generated

package
v0.0.0-...-5845185 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: CC0-1.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 {
	Event struct {
		Contract func(childComplexity int) int
		Topics   func(childComplexity int) int
	}

	JobConfirmation struct {
		Event func(childComplexity int) int
		ID    func(childComplexity int) int
	}

	Mutation struct {
		CreateTask func(childComplexity int, event model.NewEvent) int
	}

	Query struct {
		Tasks func(childComplexity int) int
	}

	Task struct {
		Event       func(childComplexity int) int
		ID          func(childComplexity int) int
		StartBlock  func(childComplexity int) int
		SubmittedAt 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 {
	CreateTask(ctx context.Context, event model.NewEvent) (*model.JobConfirmation, error)
}

type QueryResolver

type QueryResolver interface {
	Tasks(ctx context.Context) ([]*model.Task, 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