Documentation ¶
Index ¶
Constants ¶
View Source
const ( E_PARSE = -32700 E_INVALID_REQ = -32600 E_NO_METHOD = -32601 E_BAD_PARAMS = -32602 E_INTERNAL = -32603 E_SERVER = -32000 )
Variables ¶
View Source
var ContentType = `application/msgpack`
Functions ¶
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec creates a CodecRequest to process each request.
func (*Codec) NewRequest ¶
func (c *Codec) NewRequest(r *http.Request) rpcHttp.CodecRequest
type CodecRequest ¶
type CodecRequest struct {
// contains filtered or unexported fields
}
func (*CodecRequest) Method ¶
func (c *CodecRequest) Method() (string, error)
func (*CodecRequest) ReadRequest ¶
func (c *CodecRequest) ReadRequest(args interface{}) error
func (*CodecRequest) WriteError ¶
func (c *CodecRequest) WriteError(w http.ResponseWriter, status int, err error)
func (*CodecRequest) WriteResponse ¶
func (c *CodecRequest) WriteResponse(w http.ResponseWriter, reply interface{})
WriteResponse encodes the response and writes it to the ResponseWriter.
Click to show internal directories.
Click to hide internal directories.