Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers()
RegisterHandlers registers an access log handler to the handler chain
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements chain.Handler Handler records access log. Make sure to complete the initialization before handling the request.
func NewAccessLogHandler ¶
NewAccessLogHandler creates a Handler
func (*Handler) AddWhiteListAPIs ¶
AddWhiteListAPIs adds APIs to white list, where the APIs will be ignored in access log. Not safe for concurrent use.
func (*Handler) ShouldIgnoreAPI ¶
ShouldIgnoreAPI judges whether the API should be ignored in access log.
Click to show internal directories.
Click to hide internal directories.