Documentation
¶
Index ¶
Constants ¶
View Source
const (
UserKey = contextKey("user")
)
Variables ¶
This section is empty.
Functions ¶
func AccessLogMiddleware ¶
func AccessLogMiddleware(next http.Handler, logger AccessLoggerPort) http.Handler
Types ¶
type AccessLoggerPort ¶
type AuthParams ¶ added in v0.12.0
type AuthParams struct {
Secret string
UserRepo userRepositoryPort
Logger loggerPort
}
func NewAuthParams ¶ added in v0.12.0
func NewAuthParams(secret string, userRepo userRepositoryPort, logger loggerPort) AuthParams
Click to show internal directories.
Click to hide internal directories.