middleware

package
v0.0.0-...-b6cbe2a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired() gin.HandlerFunc

AuthRequired Authorization middleware

func JSONLogMiddleware

func JSONLogMiddleware() gin.HandlerFunc

JSONLogMiddleware logs a gin HTTP request in JSON format, with some additional custom key/values

func Sentry

func Sentry(client *raven.Client, onlyCrashes bool) gin.HandlerFunc

Types

type CORSOptions

type CORSOptions struct {
	Origin string
}

Jump to

Keyboard shortcuts

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