generated

package
v0.0.0-...-c907f33 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 13 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 {
	Error struct {
		ErrorCode    func(childComplexity int) int
		ErrorMessage func(childComplexity int) int
		IPAddress    func(childComplexity int) int
	}

	ErrorStatus struct {
		Error func(childComplexity int) int
	}

	IP 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 {
		Enque func(childComplexity int, ips []string) int
	}

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

	SuccessStatus struct {
		IP 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 {
	Enque(ctx context.Context, ips []string) ([]model.Status, error)
}

type QueryResolver

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