graph

package
v2.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

This file will not be regenerated automatically.

It serves as dependency injection for your app, add any dependencies you require here.

Index

Constants

This section is empty.

Variables

View Source
var TestOptions = EndpointOptions{
	EnableDebug:            false,
	EnableRandomness:       false,
	OverrideUpdateInterval: 50 * time.Millisecond,
}

Functions

func GraphQLEndpointHandler

func GraphQLEndpointHandler(opts EndpointOptions) http.Handler

func Reset

func Reset()

func WebsocketConnectionsHandler

func WebsocketConnectionsHandler(w http.ResponseWriter, r *http.Request)

Types

type EndpointOptions

type EndpointOptions struct {
	EnableDebug            bool
	EnableRandomness       bool
	OverrideUpdateInterval time.Duration
}

type Resolver

type Resolver struct{}

func (*Resolver) Entity

func (r *Resolver) Entity() generated.EntityResolver

Entity returns generated.EntityResolver implementation.

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

func (*Resolver) Subscription

func (r *Resolver) Subscription() generated.SubscriptionResolver

Subscription returns generated.SubscriptionResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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