resolver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(context.Context, []byte, request.AuthHeader, *dgo.Dgraph) error

type MiddlewareFunc

type MiddlewareFunc func(HandlerFunc) HandlerFunc

type Resolver

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

func NewResolver

func NewResolver(dql *dgo.Dgraph) *Resolver

func (*Resolver) LoadPlugins

func (r *Resolver) LoadPlugins(pluginPath string) error

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, dbody *request.DBody) error

func (*Resolver) ResolveFunc

func (r *Resolver) ResolveFunc(resolver string, handlerFunc HandlerFunc)

Use adds middleware to the chain which is run after router.

func (*Resolver) Use

func (r *Resolver) Use(middleware ...MiddlewareFunc)

Use adds middleware to the chain which is run after router.

Jump to

Keyboard shortcuts

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