gql

package
v0.0.0-...-52ed2a8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db *sqlx.DB) gin.HandlerFunc

Handler returns a graphql handler function

func Playground

func Playground(endpoint string) gin.HandlerFunc

Playground returns a hander func for the graphql playground

Types

type Resolver

type Resolver struct {
	DB *sqlx.DB
}

Resolver is a graphql query resolver.

func (*Resolver) Course

func (r *Resolver) Course() graph.CourseResolver

Course returns graph.CourseResolver implementation.

func (*Resolver) CourseBlueprint

func (r *Resolver) CourseBlueprint() graph.CourseBlueprintResolver

CourseBlueprint returns graph.CourseBlueprintResolver implementation.

func (*Resolver) Exam

func (r *Resolver) Exam() graph.ExamResolver

Exam returns graph.ExamResolver implementation.

func (*Resolver) Query

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

Query returns graph.QueryResolver implementation.

func (*Resolver) SubCourse

func (r *Resolver) SubCourse() graph.SubCourseResolver

SubCourse returns graph.SubCourseResolver implementation.

Jump to

Keyboard shortcuts

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