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 { EventDetail struct { Channel func(childComplexity int) int Claims func(childComplexity int) int Data func(childComplexity int) int ID func(childComplexity int) int Metadata func(childComplexity int) int Time func(childComplexity int) int } Mutation struct { Send func(childComplexity int, input model.Event) int } Query struct { History func(childComplexity int, input model.HistoryOpts) int } Subscription struct { Receive func(childComplexity int, input model.ReceiveOpts) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶ added in v0.0.17
type QueryResolver interface {
History(ctx context.Context, input model.HistoryOpts) ([]*model.EventDetail, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
Receive(ctx context.Context, input model.ReceiveOpts) (<-chan *model.EventDetail, error)
}
Click to show internal directories.
Click to hide internal directories.