generated

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 16 Imported by: 0

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 MutationResolver interface {
	ClearRequests(ctx context.Context) (bool, error)
}

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL