Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodTag = "golinks.middlewares.logger.method" URLTag = "golinks.middlewares.logger.url" )
Key defines the key for logger to save in gin.Context.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrInternal = errors.New("internal") )
Exported errors.
Functions ¶
func GetLogger ¶
GetLogger gets logger from gin context and returns log.Null() as the default value.
func Limited ¶
Limited returns a middleware that limits the access of clients with keyFunc and limiter.
func PanicCatcher ¶
PanicCatcher defines a panic catcher handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.