encoding

package
v0.0.0-...-c5f9841 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package encoding encoding the error or response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeError

func EncodeError(ctx context.Context, e error, w http.ResponseWriter)

func EncodePlainResponse

func EncodePlainResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error

func EncodeResponse

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

func SimpleEncodeError

func SimpleEncodeError(err error) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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