message

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeNodeConnection = "node/connection"
	SourceNodeConnection       = "edgehub"
	OperationNodeConnection    = "connect"
	OperationSubscribe         = "subscribe"
	OperationUnsubscribe       = "unsubscribe"
	OperationMessage           = "message"
	OperationPublish           = "publish"
	OperationGetResult         = "get_result"
	OperationResponse          = "response"
	OperationKeepalive         = "keepalive"

	ResourceGroupName = "resource"
	TwinGroupName     = "twin"
	FuncGroupName     = "func"
	UserGroupName     = "user"
)

constant defining node connection types

Variables

This section is empty.

Functions

func BuildMsg

func BuildMsg(group, parentID, sourceName, resource, operation string, content interface{}) *model.Message

BuildMsg returns message object with router and content details

Types

This section is empty.

Jump to

Keyboard shortcuts

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