transport

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 Bind

func Bind(req *http.Request, out interface{}) error

func Send

func Send(res http.ResponseWriter, code int, i interface{}, contenttype string) error

func SendBSON

func SendBSON(res http.ResponseWriter, code int, i interface{}) error

func SendJSON

func SendJSON(res http.ResponseWriter, code int, i interface{}) error

func SendMSGPACK

func SendMSGPACK(res http.ResponseWriter, code int, i interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL