Documentation ¶ Index ¶ func AuthMiddleware(authorized_roles []models.Role) alice.Constructor func IdentificationMiddleware(next http.Handler) http.Handler func IsAuthorized(token string, authorized_roles []models.Role) (bool, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AuthMiddleware ¶ func AuthMiddleware(authorized_roles []models.Role) alice.Constructor func IdentificationMiddleware ¶ func IdentificationMiddleware(next http.Handler) http.Handler func IsAuthorized ¶ func IsAuthorized(token string, authorized_roles []models.Role) (bool, error) Types ¶ This section is empty. Source Files ¶ View all Source files auth.go identification.go Click to show internal directories. Click to hide internal directories.