encoding

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expect

func Expect(req *transport.Request, want ...transport.Encoding) error

Expect verifies that the given request has one of the given encodings or it returns an error.

func FromOptions added in v1.0.0

func FromOptions(opts []yarpc.CallOption) []encoding.CallOption

FromOptions converts a collection of yarpc.CallOptionso to encoding.CallOptions.

func RequestBodyDecodeError

func RequestBodyDecodeError(req *transport.Request, err error) error

RequestBodyDecodeError builds an error that represents a failure to decode the request body.

func RequestBodyEncodeError

func RequestBodyEncodeError(req *transport.Request, err error) error

RequestBodyEncodeError builds an error that represents a failure to encode the request body.

func RequestHeadersDecodeError

func RequestHeadersDecodeError(req *transport.Request, err error) error

RequestHeadersDecodeError builds an error that represents a failure to decode the request headers.

func RequestHeadersEncodeError

func RequestHeadersEncodeError(req *transport.Request, err error) error

RequestHeadersEncodeError builds an error that represents a failure to encode the request headers.

func ResponseBodyDecodeError

func ResponseBodyDecodeError(req *transport.Request, err error) error

ResponseBodyDecodeError builds an error that represents a failure to decode the response body.

func ResponseBodyEncodeError

func ResponseBodyEncodeError(req *transport.Request, err error) error

ResponseBodyEncodeError builds an error that represents a failure to encode the response body.

func ResponseHeadersDecodeError

func ResponseHeadersDecodeError(req *transport.Request, err error) error

ResponseHeadersDecodeError builds an error that represents a failure to decode the response headers.

func ResponseHeadersEncodeError

func ResponseHeadersEncodeError(req *transport.Request, err error) error

ResponseHeadersEncodeError builds an error that represents a failure to encode the response headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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