Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(conn io.ReadWriteCloser, opt *Options) *Client
NewClient Create a new rpc client
type Server ¶
func (*Server) RegisterName ¶
RegisterName is like Register but uses the provided name for the type instead of the receiver's concrete type.
func (*Server) ServeCodec ¶
func (s *Server) ServeCodec(codec rpc.ServerCodec)
func (*Server) ServeRequest ¶
func (s *Server) ServeRequest(codec rpc.ServerCodec) error
ServeRequest is like ServeCodec but synchronously serves a single request. It does not close the codec upon completion.
Click to show internal directories.
Click to hide internal directories.