Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResNode = "node" ResMember = "membership" ResTwin = "twin" ResAuth = "auth_info" ResDevice = "device" )
constants for resource types
View Source
const ( OpGet = "get" OpResult = "get_result" OpList = "list" OpDetail = "detail" OpDelta = "delta" OpDoc = "document" OpUpdate = "updated" OpInsert = "insert" OpDelete = "deleted" OpConnect = "connected" OpDisConnect = "disconnected" OpKeepalive = "keepalive" )
constants for resource operations
View Source
const ( SrcCloudHub = "cloudhub" SrcManager = "edgemgr" )
constants for message source
View Source
const ( ProjectID = "project_id" NodeID = "node_id" )
constants for identifier information for edge hub
View Source
const (
GpResource = "resource"
)
GpResource constants for message group
Variables ¶
This section is empty.
Functions ¶
func IsFromEdge ¶ added in v1.2.0
IsFromEdge judges if the event is sent from edge
func IsNodeStopped ¶ added in v1.2.0
IsNodeStopped indicates if the node is stopped or running
func NewResource ¶
NewResource constructs a resource field using resource type and ID
Types ¶
Click to show internal directories.
Click to hide internal directories.