Documentation ¶
Index ¶
- Constants
- func MustAdmin(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
- func MustAuth(request *http.Request) (modified *http.Request, ok bool, code int, r_map map[string]interface{}, ...)
- func MustModerator(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
- func PaginationParams(request *http.Request) (modified *http.Request, ok bool, code int, _ map[string]interface{}, err error)
- func ParseMultipart(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
- func RejectBanned(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
Constants ¶
View Source
const ( BEARER_PREFIX = "Bearer " MULTIPART_MEM_MAX = 4 << 20 RANGE_SIZE_DEFAULT = 50 RANGE_SIZE_LIMIT = 200 )
Variables ¶
This section is empty.
Functions ¶
func MustAdmin ¶
func MustAdmin(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
*
- Reject users who are not admins
func MustAuth ¶
func MustAuth(request *http.Request) (modified *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
*
- Reject unauthed users
func MustModerator ¶
func MustModerator(request *http.Request) (_ *http.Request, ok bool, code int, r_map map[string]interface{}, err error)
*
- Reject users who are not moderators
func PaginationParams ¶
func ParseMultipart ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.