Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientCodec ¶
func (*ClientCodec) DecodeHead ¶
func (c *ClientCodec) DecodeHead(head *rpc.ResponseHead) (err error)
func (*ClientCodec) DecodeResult ¶
func (c *ClientCodec) DecodeResult(result *rpc.Result) error
func (*ClientCodec) DiscardResult ¶
func (c *ClientCodec) DiscardResult() (err error)
type ServerCodec ¶
func (*ServerCodec) DecodeArgs ¶
func (c *ServerCodec) DecodeArgs(args []interface{}) error
func (*ServerCodec) DecodeHead ¶
func (c *ServerCodec) DecodeHead(head *rpc.RequestHead) (err error)
func (*ServerCodec) DiscardArgs ¶
func (c *ServerCodec) DiscardArgs() error
func (*ServerCodec) Encode ¶
func (c *ServerCodec) Encode(resp *rpc.Response) (err error)
Encode send response to RPC client. For example
HTTP/1.1 200 OK Content-Length: 24 Auxo-Rpc-Id: 5a3a470453d38640fa000001 Connection: Keep-Alive Content-Type: application/json; charset=UTF-8 Date: Thu, 21 Dec 2017 11:18:52 CST Server: auxo-rpc
{"value":"Hello, auxo"}
Click to show internal directories.
Click to hide internal directories.