node

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionFirmwareUpdate   = "firmware_update"
	ActionHeartbeatRequest = "heartbeat_request"
	ActionReboot           = "reboot"
	ActionRefreshNodeInfo  = "refresh_node_info"
	ActionReset            = "reset"
	ActionAwake            = "awake"
)

Node actions

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	ID         string               `json:"id" yaml:"id"`
	GatewayID  string               `json:"gatewayId" yaml:"gatewayId"`
	NodeID     string               `json:"nodeId" yaml:"nodeId"`
	Name       string               `json:"name" yaml:"name"`
	Labels     cmap.CustomStringMap `json:"labels" yaml:"labels"`
	Others     cmap.CustomMap       `json:"others" yaml:"others"`
	State      types.State          `json:"state" yaml:"state"`
	LastSeen   time.Time            `json:"lastSeen" yaml:"lastSeen"`
	ModifiedOn time.Time            `json:"modifiedOn" yaml:"modifiedOn"`
}

Node struct

func (*Node) IsSleepNode

func (n *Node) IsSleepNode() bool

Jump to

Keyboard shortcuts

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