Documentation ¶
Index ¶
- Constants
- func Bind(req *http.Request, out interface{}) error
- func Send(res http.ResponseWriter, code int, i interface{}, contenttype string) error
- func SendBSON(res http.ResponseWriter, code int, i interface{}) error
- func SendJSON(res http.ResponseWriter, code int, i interface{}) error
- func SendMSGPACK(res http.ResponseWriter, code int, i interface{}) error
Constants ¶
View Source
const ( TRANSPORT_INTERNAL_CONTENTTYPE_KEYNAME = "Content-Type" TRANSPORT_CONTENTTYPE_JSON = "application/json" TRANSPORT_CONTENTTYPE_BSON = "application/x-bson" TRANSPORT_CONTENTTYPE_MSGPACK = "application/x-msgpack" )
Variables ¶
This section is empty.
Functions ¶
func SendMSGPACK ¶
func SendMSGPACK(res http.ResponseWriter, code int, i interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.