Documentation ¶
Index ¶
- Variables
- func AdminProtectedRoute(h http.HandlerFunc) http.HandlerFunc
- func ProtectedRoute(h http.HandlerFunc) http.HandlerFunc
- func ProvideRouter(l logger.Middleware, a auth.Middleware, m http.Handler) *chi.Mux
- func RoleProtectedRoute(h http.HandlerFunc, roleName string) http.HandlerFunc
- func UserProtectedRoute(h http.HandlerFunc, username string) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(ProvideRouter), )
Functions ¶
func AdminProtectedRoute ¶
func AdminProtectedRoute(h http.HandlerFunc) http.HandlerFunc
func ProtectedRoute ¶
func ProtectedRoute(h http.HandlerFunc) http.HandlerFunc
func ProvideRouter ¶
func ProvideRouter(l logger.Middleware, a auth.Middleware, m http.Handler) *chi.Mux
func RoleProtectedRoute ¶
func RoleProtectedRoute(h http.HandlerFunc, roleName string) http.HandlerFunc
func UserProtectedRoute ¶
func UserProtectedRoute(h http.HandlerFunc, username string) http.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.