Documentation
¶
Index ¶
- func AccessLogMiddleware(next http.Handler) http.Handler
- func Auth(next http.Handler, params AuthParams) http.Handler
- func PrivateRoute(endpoint http.Handler, authParams AuthParams) http.Handler
- func PublicRoute(endpoint http.Handler) http.Handler
- func RequestIdMiddleware(next http.Handler) http.Handler
- type AuthParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateRoute ¶ added in v0.13.0
func PrivateRoute(endpoint http.Handler, authParams AuthParams) http.Handler
Types ¶
type AuthParams ¶ added in v0.12.0
type AuthParams struct {
Secret string
UserRepo auth.AuthUserRepository
}
func NewAuthParams ¶ added in v0.12.0
func NewAuthParams(secret string, userRepo auth.AuthUserRepository) AuthParams
Click to show internal directories.
Click to hide internal directories.