Documentation ¶
Index ¶
- Variables
- func AssembleBuffer(b []byte) (result []byte)
- func BytesToIntLittleEndian(b []byte) uint
- func EncodeCallMsg(in *RPCCall) (b []byte)
- func EncodeResultMsg(in *RPCResult) (b []byte)
- func GetMsgBody(b []byte, length uint) []byte
- func GetMsgLen(b []byte) uint
- func HandleHeader(b []byte) (newB []byte)
- func IntToBytesLittleEndian(n int) []byte
- type RPCCall
- type RPCClient
- type RPCFunc
- type RPCResult
- type RPCServer
Constants ¶
This section is empty.
Variables ¶
View Source
var MSG_HEAD = []byte("@@@@")
Functions ¶
Types ¶
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
func NewRPCClient ¶
type RPCServer ¶
type RPCServer struct { Listener *net.TCPListener Port string RPCObjs *sync.Map // rpc注册的对象 }
rpc
func NewRPCServer ¶
Click to show internal directories.
Click to hide internal directories.