simple-go-rpc: Index | Files

package dataserial

import ""


Package Files


func Encode Uses

func Encode(data RPCdata) ([]byte, error)

Encode The RPCdata in binary format which can be sent over the network.

type RPCdata Uses

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 Uses

func Decode(b []byte) (RPCdata, error)

Decode the binary data into the Go RPC struct

Package dataserial imports 2 packages (graph) and is imported by 2 packages. Updated 2019-08-04. Refresh now. Tools for package owners.