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 QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.