Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AccessControlAllowOrigin = "*"
)
Functions ¶
func CommonHandler ¶
func CommonHandler() gin.HandlerFunc
func ErrorLogger ¶
func ErrorLogger() gin.HandlerFunc
func ErrorLoggerT ¶
func ErrorLoggerT(typ gin.ErrorType) gin.HandlerFunc
func Logger ¶
func Logger() gin.HandlerFunc
Logger instances a Logger middleware that will write the logs to gin.DefaultWriter By default gin.DefaultWriter = os.Stdout
func LoggerWithWriter ¶
func LoggerWithWriter(notlogged ...string) gin.HandlerFunc
LoggerWithWriter instance a Logger middleware with the specified writter buffer. Example: os.Stdout, a file opened in write mode, a socket...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.