Documentation ¶
Index ¶
- func Auth(adminKey string) macaron.Handler
- func GetContextHandler() macaron.Handler
- func GetUser(adminKey, key string) (*auth.User, error)
- func Init(adminKey string)
- func Quota(target string) macaron.Handler
- func QuotaReached(c *Context, target string) (bool, error)
- func RequestStats(handler string) macaron.Handler
- func RequireAdmin() macaron.Handler
- func RoleAuth(roles ...gcom.RoleType) macaron.Handler
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextHandler ¶
func GetContextHandler() macaron.Handler
func RequestStats ¶
func RequestStats(handler string) macaron.Handler
RequestStats returns a middleware that tracks request metrics.
func RequireAdmin ¶
func RequireAdmin() macaron.Handler
Types ¶
Click to show internal directories.
Click to hide internal directories.