controller

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForContext

func ForContext(ctx context.Context) (*users.User, *Errors.RestError)

ForContext finds the user from the context. REQUIRES Middleware to have run.

func GraphHandler added in v1.0.6

func GraphHandler() gin.HandlerFunc

func Middleware

func Middleware(key string) func(http.Handler) http.Handler

func PlaygroundHandlers

func PlaygroundHandlers() gin.HandlerFunc

func TokenAuthMiddleware

func TokenAuthMiddleware(contextkey string) gin.HandlerFunc

func TokenNoAuthMiddleware added in v1.0.7

func TokenNoAuthMiddleware(contextkey string) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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