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 { Attributes func(childComplexity int) int Data 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.ReceiveRequest) 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 ¶
type SubscriptionResolver interface {
Receive(ctx context.Context, input model.ReceiveRequest) (<-chan *model.CloudEvent, error)
}
Click to show internal directories.
Click to hide internal directories.