Documentation ¶
Index ¶
- Constants
- type Change
- type Core
- type Message
- func BadRequest(message string) *Message
- func Created(key string, results interface{}) *Message
- func File(results string) *Message
- func InternalServerError() *Message
- func MethodNotAllowed() *Message
- func NotFound(key string) *Message
- func Ok(key string, length int, results interface{}) *Message
- func Unauthorized(message string) *Message
- type Retrieve
Constants ¶
View Source
const ( TypeJSON = 0 TypeFile = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
Message is the return type of all handlers
func BadRequest ¶
BadRequest sends response with status code 400
func InternalServerError ¶
func InternalServerError() *Message
InternalServerError sends response with status code 500
func MethodNotAllowed ¶
func MethodNotAllowed() *Message
MethodNotAllowed sends response with status code 405
func Unauthorized ¶
Unauthorized sends response with status code 401
Click to show internal directories.
Click to hide internal directories.