Documentation ¶
Index ¶
- func BadRequest(response http.ResponseWriter) error
- func Forbidden(response http.ResponseWriter) error
- func ForkSessionContext(ctx context.Context, id string) context.Context
- func GetHTTPErrorStatusCode(err error) int
- func MakeErrorHandler(err error) http.HandlerFunc
- func NotFound(response http.ResponseWriter) error
- func ReadJSON(request *http.Request, v interface{}) error
- func SessionIdFromContext(ctx context.Context) (string, error)
- func SuccessEmpty(response http.ResponseWriter) error
- func SuccessOK(response http.ResponseWriter) error
- func Unauthorized(response http.ResponseWriter) error
- func WriteJSON(response http.ResponseWriter, statusCode int, v interface{}) error
- type Function
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(response http.ResponseWriter) error
func Forbidden ¶
func Forbidden(response http.ResponseWriter) error
func GetHTTPErrorStatusCode ¶
func MakeErrorHandler ¶
func MakeErrorHandler(err error) http.HandlerFunc
func NotFound ¶
func NotFound(response http.ResponseWriter) error
func SuccessEmpty ¶
func SuccessEmpty(response http.ResponseWriter) error
func SuccessOK ¶
func SuccessOK(response http.ResponseWriter) error
func Unauthorized ¶
func Unauthorized(response http.ResponseWriter) error
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.