transport

package
v0.0.0-...-3c3176f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCountRequest

func DecodeCountRequest(_ context.Context, r *http.Request) (interface{}, error)

DecodeCountRequest decodes a JSON-encoded count request from the HTTP request body.

func DecodeUppercaseRequest

func DecodeUppercaseRequest(_ context.Context, r *http.Request) (interface{}, error)

DecodeUppercaseRequest decodes a JSON-encoded uppercase request from the HTTP request body.

func EncodeResponse

func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error

EncodeResponse encodes the response as JSON to the response writer.

func NewHTTPHandler

func NewHTTPHandler(endpoints endpoint.Set) http.Handler

NewHTTPHandler returns an HTTP handler that makes a set of endpoints available on predefined paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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