Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRuntime = []Runtime{ RuntimeNode14, RuntimeNode15, RuntimeNode16, RuntimeGo1_15, RuntimeGo1_16, RuntimeGo1_17, RuntimePython2, RuntimePython3, RuntimeBinary, }
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Order struct { Auth func(childComplexity int) int AuthHeader func(childComplexity int) int Env func(childComplexity int) int Name func(childComplexity int) int Path func(childComplexity int) int Runtime func(childComplexity int) int } Query struct { Order func(childComplexity int, name string) int Sandwiches func(childComplexity int, runtime Runtime, limit *int) int Shops func(childComplexity int, runtime Runtime, limit *int) int } Sandwich struct { Host func(childComplexity int) int Name func(childComplexity int) int Port func(childComplexity int) int Runtimes func(childComplexity int, id *Runtime) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
type Runtime ¶
type Runtime string
const ( RuntimeNode14 Runtime = "node14" RuntimeNode15 Runtime = "node15" RuntimeNode16 Runtime = "node16" RuntimeGo1_15 Runtime = "go1_15" RuntimeGo1_16 Runtime = "go1_16" RuntimeGo1_17 Runtime = "go1_17" RuntimePython2 Runtime = "python2" RuntimePython3 Runtime = "python3" RuntimeBinary Runtime = "binary" )
func (Runtime) MarshalGQL ¶
func (*Runtime) UnmarshalGQL ¶
Click to show internal directories.
Click to hide internal directories.