driver

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandStatus

type CommandStatus struct {
	ErrorCode
	Msg string
}

CommandStatus the result of a robot instruction

func CommandError

func CommandError(message string) CommandStatus

CommandError indicate that a fatal error occurred

func CommandNotImplemented

func CommandNotImplemented(message string) CommandStatus

CommandNotImplemented indicates that the function is not implemented for this driver

func CommandOk

func CommandOk() CommandStatus

CommandOk indicate that the function was successful

func CommandWarn

func CommandWarn(message string) CommandStatus

CommandWarn indicate that the function completed successfully but that a warning was generated

func (CommandStatus) Fatal

func (cs CommandStatus) Fatal() bool

Fatal returns true if a fatal error occurred

func (CommandStatus) GetError

func (cs CommandStatus) GetError() error

GetError if a fatal error occurred, returns it. Otherwise returns nil. If a warning was returned, it is written to standard error

func (CommandStatus) Ok

func (cs CommandStatus) Ok() bool

Ok tests whether the function returned successfully

func (CommandStatus) String

func (cs CommandStatus) String() string

String returns a string representation of the CommandStatus

type ErrorCode

type ErrorCode int
const (
	OK ErrorCode = iota
	ERR
	WRN
	NIM // Not implemented
)

func (ErrorCode) String

func (ec ErrorCode) String() string

type PositionState

type PositionState map[string]interface{}

type Status

type Status map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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