Documentation ¶
Index ¶
- func GetSelfUser(r *http.Request) *models.User
- func GetSelfUserCID(r *http.Request) string
- func HasAPIKey(next http.Handler) http.Handler
- func HasRole(roles ...constants.RoleID) func(http.Handler) http.Handler
- func HasRoleInFacility(w http.ResponseWriter, r *http.Request, facility string, ...) bool
- func IsGuest(r *http.Request) bool
- func NotGuest(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSelfUserCID ¶
func HasRoleInFacility ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.