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 { Mutation struct { CreateCluster func(childComplexity int, input model.ClusterInput) int } Query struct { } Subscription struct { ClusterSubscription func(childComplexity int) int } ClusterResponse struct { Data func(childComplexity int) int ID 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 {
CreateCluster(ctx context.Context, input model.ClusterInput) (*model.ClusterResponse, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
ClusterSubscription(ctx context.Context) (<-chan *model.ClusterResponse, error)
}
Click to show internal directories.
Click to hide internal directories.