rpc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADDRESS uint8 = iota
	COMMAND
	DATA
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Line     string        `json: "line"`
	Device   string        `json: "device"`
	Baud     int           `json: "baud"`
	StopBits int           `json: "stop_bits"`
	Sleep    int64         `json: "sleep"`
	Timeout  time.Duration `json: "timeout"`
	Command  []byte        `json: "command"`
	Result   bool          `json: "result"`
}

type Result

type Result struct {
	Command   []byte `json: "command"`
	Device    string `json: "device"`
	Result    string `json: "result"`
	Error     string `json: "error"`
	ErrorCode string `json: "error_code"`
}

Jump to

Keyboard shortcuts

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