resolvers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SubscriptionChannelSize = 1024

SubscriptionChannelSize is the size of a subscription channel. If a channel is full new messages will be dropped and the client won't receive them.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	Nodes *models.NodeManager
	Subs  *pubsub.PubSub
}

Resolver is the root GraphQL resolver.

func (*Resolver) Mutation

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

Mutation returns the resolver for mutations.

func (*Resolver) Query

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

Query returns the resolver for queries.

func (*Resolver) Subscription

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

Subscription returns the resolver for subscriptions.

Jump to

Keyboard shortcuts

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