Documentation ¶
Overview ¶
muxrpc document
muxrpc project muxrpc.go
Index ¶
- type Conn
- func (mx *Conn) Call(method string, reply interface{}, args ...interface{}) error
- func (mx *Conn) DeregisterReturn(req int32)
- func (mx *Conn) Handle() error
- func (mx *Conn) RegisterReturn(req int32, h func(*codec.Packet))
- func (mx *Conn) Send(p *codec.Packet) error
- func (mx *Conn) Source(method string, reply func(p *codec.Packet), args ...interface{}) error
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package codec implements readers and writers for https://github.com/dominictarr/packet-stream-codec Packet structure: ( [flags (1byte), length (4 bytes, UInt32BE), req (4 bytes, Int32BE)] # Header [body (length bytes)] ) * [zeros (9 bytes)] Flags: [ignored (4 bits), stream (1 bit), end/err (1 bit), type (2 bits)] type = {0 => Buffer, 1 => String, 2 => JSON} # PacketType
|
Package codec implements readers and writers for https://github.com/dominictarr/packet-stream-codec Packet structure: ( [flags (1byte), length (4 bytes, UInt32BE), req (4 bytes, Int32BE)] # Header [body (length bytes)] ) * [zeros (9 bytes)] Flags: [ignored (4 bits), stream (1 bit), end/err (1 bit), type (2 bits)] type = {0 => Buffer, 1 => String, 2 => JSON} # PacketType |
Click to show internal directories.
Click to hide internal directories.