Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS(options CORSOptions) gin.HandlerFunc
CORS middleware from https://github.com/gin-gonic/gin/issues/29#issuecomment-89132826
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
}
Click to show internal directories.
Click to hide internal directories.