generated

package
v0.0.0-...-2351a71 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 {
	EnqueuePayload struct {
		QueuedIps func(childComplexity int) int
	}

	IPDetails struct {
		CreatedAt    func(childComplexity int) int
		IPAddress    func(childComplexity int) int
		ResponseCode func(childComplexity int) int
		UUID         func(childComplexity int) int
		UpdatedAt    func(childComplexity int) int
	}

	Mutation struct {
		Enqueue func(childComplexity int, ip []string) int
	}

	Query struct {
		GetIPDetails func(childComplexity int, ip string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	Enqueue(ctx context.Context, ip []string) (*model.EnqueuePayload, error)
}

type QueryResolver

type QueryResolver interface {
	GetIPDetails(ctx context.Context, ip string) (*model.IPDetails, 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