Versions in this module Expand all Collapse all v1 v1.2.0 Feb 12, 2019 Changes in this version + const E_BAD_PARAMS + const E_INTERNAL + const E_INVALID_REQ + const E_NO_METHOD + const E_PARSE + const E_SERVER + var ContentType = `application/msgpack` + func Call(url string, method string, request interface{}, reply interface{}) (e error) + type Codec struct + func NewCodec() *Codec + func (c *Codec) NewRequest(r *http.Request) rpcHttp.CodecRequest + type CodecRequest struct + func (c *CodecRequest) Method() (string, error) + func (c *CodecRequest) ReadRequest(args interface{}) error + func (c *CodecRequest) WriteError(w http.ResponseWriter, status int, err error) + func (c *CodecRequest) WriteResponse(w http.ResponseWriter, reply interface{}) + type Error struct + Code int + Data interface{} + Message string + func ConvertError(err error) (replyError *Error) + func (e *Error) Error() string