dataserial

package
v0.0.0-...-1847b9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL