Documentation ¶ Index ¶ func Encode(data RPCdata) ([]byte, error) type RPCdata func Decode(b []byte) (RPCdata, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Encode ¶ func Encode(data RPCdata) ([]byte, error) Encode The RPCdata in binary format which can be sent over the network. Types ¶ type RPCdata ¶ type RPCdata struct { Name string // name of the function Args []interface{} // request's or response's body expect error. Err string // Error any executing remote server } RPCdata represents the serializing format of structured data func Decode ¶ func Decode(b []byte) (RPCdata, error) Decode the binary data into the Go RPC struct Source Files ¶ View all Source files data.go Click to show internal directories. Click to hide internal directories.