handler

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContext

func AddContext(ctx context.Context, h http.Handler) http.Handler

func Authenticate

func Authenticate(h http.Handler) http.Handler

func Login

func Login() http.Handler

Types

type GraphQL

type GraphQL struct {
	Schema  *graphql.Schema
	Loaders loader.LoaderCollection
	Logger  logger
}

func (*GraphQL) ServeHTTP

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

type LoggerHandler

type LoggerHandler struct {
	DebugMode bool
}

func (*LoggerHandler) Logging

func (l *LoggerHandler) Logging(h http.Handler) http.Handler

Jump to

Keyboard shortcuts

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