graphql

package
v0.0.0-...-bae350f Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db *xorm.Engine) gin.HandlerFunc

func HasRole

func HasRole(ctx context.Context, obj interface{}, next gql.Resolver, role model.Role) (interface{}, error)

func IsAuth

func IsAuth(ctx context.Context, obj interface{}, next gql.Resolver) (interface{}, error)

func IsNotAuth

func IsNotAuth(ctx context.Context, obj interface{}, next gql.Resolver) (interface{}, error)

func Playground

func Playground(title, gqlPath string) gin.HandlerFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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