Documentation ¶
Index ¶
Constants ¶
View Source
const (
XAuthTokenKey = "X-Auth-Token"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorLogger ¶
func ErrorLogger() gin.HandlerFunc
ErrorLogger returns an ErrorLoggerT with parameter gin.ErrorTypeAny
func ErrorLoggerT ¶
func ErrorLoggerT(typ gin.ErrorType) gin.HandlerFunc
ErrorLoggerT returns an ErrorLoggerT middleware with the given type gin.ErrorType.
func KeystoneTokenVerifyMiddleware ¶
func KeystoneTokenVerifyMiddleware() gin.HandlerFunc
func Logger ¶
func Logger() gin.HandlerFunc
Logger prints a logline for each request and measures the time to process for a call. It formats the log entries similar to http://godoc.org/github.com/gin-gonic/gin#Logger does.
Example:
router := gin.New() router.Use(ginglog.Logger())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.