subscriptionwithcontext

package
v0.17.93 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 12 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 {
}

type DirectiveRoot

type DirectiveRoot struct {
}

type Query

type Query struct {
}

type QueryResolver

type QueryResolver interface {
	Noop(ctx context.Context) (*bool, error)
}

type Resolver

type Resolver struct{}

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver implementation.

func (*Resolver) Subscription

func (r *Resolver) Subscription() SubscriptionResolver

Subscription returns SubscriptionResolver implementation.

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
	Subscription() SubscriptionResolver
}

type Stub

type Stub struct {
	QueryResolver struct {
		Noop func(ctx context.Context) (*bool, error)
	}
	SubscriptionResolver struct {
		Marked   func(ctx context.Context) (<-chan graphql.Event[string], error)
		Unmarked func(ctx context.Context) (<-chan string, error)
	}
}

func (*Stub) Query

func (r *Stub) Query() QueryResolver

func (*Stub) Subscription

func (r *Stub) Subscription() SubscriptionResolver

type Subscription

type Subscription struct {
}

type SubscriptionResolver

type SubscriptionResolver interface {
	Marked(ctx context.Context) (<-chan graphql.Event[string], error)
	Unmarked(ctx context.Context) (<-chan string, error)
}

Jump to

Keyboard shortcuts

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