server

package
v0.0.0-...-3b23420 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

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

func New

func New() *cobra.Command

New returns a new instance of the 'server' command.

Types

type DeviceSummaries

type DeviceSummaries []*scheme.Scan

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

type Readings []*scheme.Read

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.

func (Readings) Len

func (s Readings) Len() int

func (Readings) Less

func (s Readings) Less(i, j int) bool

func (Readings) Swap

func (s Readings) Swap(i, j int)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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