transport

package
v0.0.0-...-abbbc68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAPIRequest

func DecodeAPIRequest(context context.Context, httpRequest *http.Request) (interface{}, error)

DecodeAPIRequest decodes the request message sent by the client. The request message can be sent using GET method as part of URL or can be the payload of a POST HTTP message.

func EncodeAPIResponse

func EncodeAPIResponse(context context.Context, writer http.ResponseWriter, response interface{}) error

EncodeAPIResponse encodes the response message before sending back to the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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