Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidRowData is a printer function error which indicates that the // data type given to the printer is unexpected. This error should never be // induced by a user error, but may occur if there are changes in modeling. ErrInvalidRowData = errors.New("invalid row data") // ErrNilData is a printer function error which indicates that the value // passed to the printer is nil and can not be printed. ErrNilData = errors.New("row handler got nil data") )
Functions ¶
Types ¶
type DeviceSummaries ¶
DeviceSummaries implements sort.Interface for Scan responses from the Synse Server client. It sorts based on the device ID.
func (DeviceSummaries) Len ¶
func (s DeviceSummaries) Len() int
func (DeviceSummaries) Less ¶
func (s DeviceSummaries) Less(i, j int) bool
func (DeviceSummaries) Swap ¶
func (s DeviceSummaries) Swap(i, j int)
type Readings ¶
Readings implements sort.Interface for Read responses from the Synse Server client. It sorts based on the ID of the device from which the reading originated, and the type of the reading.
type Transactions ¶
type Transactions []*scheme.Transaction
Transactions implements sort.Interface for Transaction responses from the Synse Server client. It sorts based on the device ID and transaction ID.
func (Transactions) Len ¶
func (s Transactions) Len() int
func (Transactions) Less ¶
func (s Transactions) Less(i, j int) bool
func (Transactions) Swap ¶
func (s Transactions) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.