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 { ClearRequests func(childComplexity int) int } ParamFields struct { Form func(childComplexity int) int Json func(childComplexity int) int JsonArray func(childComplexity int) int Query func(childComplexity int) int } Query struct { Requests func(childComplexity int) int ServerInfo func(childComplexity int) int } RequestFields struct { Duration func(childComplexity int) int Method func(childComplexity int) int Protocol func(childComplexity int) int RemoteAddress func(childComplexity int) int StatusCode func(childComplexity int) int Time func(childComplexity int) int Url func(childComplexity int) int } RequestPayload struct { CreatedAt func(childComplexity int) int Fields func(childComplexity int) int Headers func(childComplexity int) int ID func(childComplexity int) int Message func(childComplexity int) int ParamFields func(childComplexity int) int } ServerInfo struct { BuildInfo func(childComplexity int) int Protocol func(childComplexity int) int RequestAddress func(childComplexity int) int RequestPort func(childComplexity int) int ResponseCode func(childComplexity int) int WebPort func(childComplexity int) int } Subscription struct { Request 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 QueryResolver interface { Requests(ctx context.Context) ([]*protocol.RequestPayload, error) ServerInfo(ctx context.Context) (*model.ServerInfo, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
Request(ctx context.Context) (<-chan *protocol.RequestPayload, error)
}
Click to show internal directories.
Click to hide internal directories.