Versions in this module Expand all Collapse all v1 v1.2.0 Mar 25, 2019 Changes in this version + func DecodeClientResponse(r io.Reader, reply interface{}) error + func EncodeClientRequest(method string, args interface{}) ([]byte, error) + type Codec struct + func NewCodec() *Codec + func (c *Codec) NewRequest(r *http.Request) rpc.CodecRequest + type CodecRequest struct + func (c *CodecRequest) Method() (string, error) + func (c *CodecRequest) ReadRequest(args interface{}) error + func (c *CodecRequest) WriteError(w http.ResponseWriter, _ int, err error) + func (c *CodecRequest) WriteResponse(w http.ResponseWriter, reply interface{}) + type Error struct + Data interface{} + func (e *Error) Error() string