Documentation ¶
Index ¶
- Constants
- func ErrorHandler(next echo.HTTPErrorHandler) echo.HTTPErrorHandler
- func FirebaseAuth(skipper middleware.Skipper, auth AuthProvider) echo.MiddlewareFunc
- func RequestID(skipper middleware.Skipper) echo.MiddlewareFunc
- func RequestLogger(log *zap.Logger, extraLogFieldExtractor ...LogFieldExtractor) echo.MiddlewareFunc
- func UpdateLastOnline(skipper middleware.Skipper, lo LastOnlineProvider) echo.MiddlewareFunc
- type AuthProvider
- type LastOnlineProvider
- type LogFieldExtractor
Constants ¶
View Source
const RequestIDContextKey string = "requestID"
View Source
const UserIDContextKey = "userID"
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(next echo.HTTPErrorHandler) echo.HTTPErrorHandler
func FirebaseAuth ¶
func FirebaseAuth(skipper middleware.Skipper, auth AuthProvider) echo.MiddlewareFunc
func RequestID ¶
func RequestID(skipper middleware.Skipper) echo.MiddlewareFunc
func RequestLogger ¶
func RequestLogger(log *zap.Logger, extraLogFieldExtractor ...LogFieldExtractor) echo.MiddlewareFunc
func UpdateLastOnline ¶
func UpdateLastOnline(skipper middleware.Skipper, lo LastOnlineProvider) echo.MiddlewareFunc
Types ¶
type AuthProvider ¶
type LastOnlineProvider ¶
type LogFieldExtractor ¶
Click to show internal directories.
Click to hide internal directories.