package
Version:
v0.0.0-...-e955a5d
Opens a new window with list of versions in this module.
Published: Aug 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
package node contains generic node types and functions
View Source
const (
StatusUnitialised Status = iota
StatusPending
StatusReady
StatusUnknown
NodeIEC NodeType = "IEC"
NodeClient NodeType = "client"
NodeDevice NodeType = "device"
)
GatherEnvironmentData gathers data about the local environment and returns it as a base 64 encoded byte array
type Build struct {
Version string `json:"version"`
Date string `json:"date"`
UTCTime string `json:"utc_time"`
Platform string `json:"platform"`
Number string `json:"number"`
TrustedAgent *struct {
Version string `json:"version"`
Date string `json:"date"`
UTCTime string `json:"utc_time"`
Platform string `json:"platform"`
Number string `json:"number"`
} `json:"trusted_agent,omitempty"`
}
Build holds build information about the node
String defines a print formatter for the Build information
NodeType is an enum to identify the type of node in question
Status is an enum returned by a Status request
String converts a Status into a string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.