Documentation ¶
Index ¶
- func ForContext(ctx context.Context) (*users.User, *Errors.RestError)
- func GraphHandler() gin.HandlerFunc
- func Middleware(key string) func(http.Handler) http.Handler
- func PlaygroundHandlers() gin.HandlerFunc
- func TokenAuthMiddleware(contextkey string) gin.HandlerFunc
- func TokenNoAuthMiddleware(contextkey string) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForContext ¶
ForContext finds the user from the context. REQUIRES Middleware to have run.
func GraphHandler ¶ added in v1.0.6
func GraphHandler() gin.HandlerFunc
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.
Click to show internal directories.
Click to hide internal directories.