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 { AuthResponse struct { ExpirateAt func(childComplexity int) int JwtToken func(childComplexity int) int } Entities struct { Media func(childComplexity int) int Tags func(childComplexity int) int Urls func(childComplexity int) int } Event struct { Actor func(childComplexity int) int CreatedAt func(childComplexity int) int EmittedAt func(childComplexity int) int Entities func(childComplexity int) int EventKind func(childComplexity int) int ID func(childComplexity int) int Message func(childComplexity int) int ShareURL func(childComplexity int) int SourceID func(childComplexity int) int SourceName func(childComplexity int) int Title func(childComplexity int) int } MediaEntity struct { Type func(childComplexity int) int URL func(childComplexity int) int } Mutation struct { Emit func(childComplexity int, draft model.EventDraft) int } Person struct { Email func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int Photo func(childComplexity int) int ProfileURL func(childComplexity int) int Username func(childComplexity int) int } Query struct { Login func(childComplexity int, username string, password string) int SharedBoard func(childComplexity int, buffer int) int } Subscription struct { EventStream func(childComplexity int, filter *model.EventStreamFilter) int } URLEntity struct { DisplayURL func(childComplexity int) int URL func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
EventStream(ctx context.Context, filter *model.EventStreamFilter) (<-chan *supersense.Event, error)
}
Click to show internal directories.
Click to hide internal directories.