handler

package
v0.0.0-...-a1c7362 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(h http.Handler) http.Handler

Authenticate for JWT

Types

type ContextKey

type ContextKey string

ContextKey for the userID in context

type GraphQL

type GraphQL struct {
	Schema *graphql.Schema
}

GraphQL struct

func (*GraphQL) ServeHTTP

func (h *GraphQL) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GraphiQL

type GraphiQL struct{}

GraphiQL is an in-browser IDE for exploring GraphiQL APIs. This handler returns GraphiQL when requested.

For more information, see https://github.com/graphql/graphiql.

func (GraphiQL) ServeHTTP

func (h GraphiQL) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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