directives

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

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Directives = resolvers.DirectiveRoot{
	IsAuthenticated: IsAuthenticated,
	HasScope:        HasScope,
}

Directives ...

Functions

func HasScope

func HasScope(ctx context.Context, obj interface{}, next graphql.Resolver, scopes []string) (interface{}, error)

HasScope defines scope.

func IsAuthenticated

func IsAuthenticated(ctx context.Context, obj interface{}, next graphql.Resolver) (interface{}, error)

IsAuthenticated is used to authenticate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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