resolvers

package
v0.0.0-...-3c02646 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Database() *database.Database
	Cluster() cluster.Cluster
	Events() events.PubSub
}

Backend is implemented by services that provide a backend for the GraphQL resolver implementation. This is primarily done to avoid circular dependencies.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver is the GraphQL resolver dependency injection point.

func New

func New(logger log.Logger, backend Backend) (*Resolver, error)

New creates a new Resolver with the provided backend.

func (*Resolver) Metadata

func (r *Resolver) Metadata() server.MetadataResolver

Metadata returns server.MetadataResolver implementation.

func (*Resolver) Mutation

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

Mutation returns server.MutationResolver implementation.

func (*Resolver) Query

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

Query returns server.QueryResolver implementation.

func (*Resolver) User

func (r *Resolver) User() server.UserResolver

User returns server.UserResolver implementation.

Jump to

Keyboard shortcuts

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