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 { CloudEvent struct { Data func(childComplexity int) int DataBase64 func(childComplexity int) int Datacontenttype func(childComplexity int) int Dataschema func(childComplexity int) int EventgateAuth func(childComplexity int) int ID func(childComplexity int) int Source func(childComplexity int) int Specversion func(childComplexity int) int Subject func(childComplexity int) int Time func(childComplexity int) int Type func(childComplexity int) int } Mutation struct { Request func(childComplexity int, input model.CloudEventInput) int Send func(childComplexity int, input model.CloudEventInput) int } Query struct { } Subscription struct { Receive func(childComplexity int, input model.Filter) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { Send(ctx context.Context, input model.CloudEventInput) (*string, error) Request(ctx context.Context, input model.CloudEventInput) (*model.CloudEvent, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
Click to show internal directories.
Click to hide internal directories.