gql

package
v0.0.0-...-750da50 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphqlHandler

func GraphqlHandler(
	mus userservice.UserService,
	ps postservice.PostService,
	redisClient *redis.Client,
) gin.HandlerFunc

GraphqlHandler defines the GQLGen GraphQL server handler

func PlaygroundHandler

func PlaygroundHandler(path string) gin.HandlerFunc

PlaygroundHandler Defines the Playground handler to expose our playground

Types

type Resolver

type Resolver struct {
	UserService userservice.UserService
	PostService postservice.PostService
	// contains filtered or unexported fields
}

Resolver struct

func (*Resolver) Mutation

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

Mutation graphql

func (*Resolver) PostSchema

func (r *Resolver) PostSchema() gen.PostSchemaResolver

PostSchema graphql

func (*Resolver) Query

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

Query graphql

func (*Resolver) Subscription

func (r *Resolver) Subscription() gen.SubscriptionResolver

Subscription graphql

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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