websocket

package
v0.0.0-...-f373e18 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetMeasurement(config apiv1.Config, lastMeasurement *contractsv1.Measurement) (measurement contractsv1.Measurement, err error)
}

Client is the interface for connecting to a websocket device via ethernet

func NewClient

func NewClient(host string, port int, loginCode string) (Client, error)

NewClient returns new websocket.Client

type Navigation struct {
	XMLName xml.Name         `xml:"Navigation"`
	ID      string           `xml:"id,attr"`
	Items   []NavigationItem `xml:"item"`
}
func (n *Navigation) GetNavigationItemID(itemPath string) (navigationID string, err error)
type NavigationItem struct {
	XMLName xml.Name         `xml:"item"`
	ID      string           `xml:"id,attr"`
	Name    string           `xml:"name"`
	Items   []NavigationItem `xml:"item"`
}

Jump to

Keyboard shortcuts

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