Documentation ¶
Index ¶
- func AllowCORS() martini.Handler
- func Auth(user_storage storage.UserStorage) martini.Handler
- func CombinedLogger() martini.Handler
- func EncodeOutput(prettify bool) martini.Handler
- func LogrusLogger() martini.Handler
- func RequireAdmin() martini.Handler
- func RequireRoles(roles ...dsapid.UserRoleName) martini.Handler
- func Throttle(quota *throttle.Quota) martini.Handler
- type OutputEncoder
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinedLogger ¶
func EncodeOutput ¶
func LogrusLogger ¶ added in v0.6.7
func RequireAdmin ¶ added in v0.6.6
func RequireRoles ¶
func RequireRoles(roles ...dsapid.UserRoleName) martini.Handler
Types ¶
type OutputEncoder ¶
Click to show internal directories.
Click to hide internal directories.