Documentation ¶
Index ¶
- func Authenticate(handler http.Handler) http.Handler
- func Constraint(handler http.Handler) http.Handler
- func Context(handler http.Handler, db *sql.DB, r *render.Render) http.Handler
- func CurrentUser(r *http.Request) *models.User
- func Logger(handler http.Handler, logger *durable.Logger) http.Handler
- func State(handler http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate handle routes by user's role
func Constraint ¶
Constraint process OPTIONS request.
func CurrentUser ¶
CurrentUser read the user from r.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.