message

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildB2PDefaultMessage

func BuildB2PDefaultMessage(bootID, bootName string) *protocol.PlatformMessage

boot -> platform

func BuildCallPluginConfigChangeMessage

func BuildCallPluginConfigChangeMessage(
	key string, originVal, newVal []string,
	host common_type.HostInfo,
	target common_type.IInstanceDescription,
) *protocol.PlatformMessage

func BuildCallPluginEventMessage

func BuildCallPluginEventMessage(
	eventType string, payload []byte,
	host common_type.HostInfo,
	target common_type.IInstanceDescription,
) *protocol.PlatformMessage

func BuildCallPluginFunctionMessage

func BuildCallPluginFunctionMessage(
	abilityID, abilityType, abilityFuncKey string, arg []byte,
	host common_type.HostInfo,
	target common_type.IInstanceDescription,
) *protocol.PlatformMessage

func BuildCallPluginHTTPMessage

func BuildCallPluginHTTPMessage(
	req *common_type.HttpRequest,
	internal bool,
	host common_type.HostInfo,
	target common_type.IInstanceDescription,
	abilityFunc string,
) *protocol.PlatformMessage

func BuildErrorMessage

func BuildErrorMessage(err common_type.PluginError) *protocol.ErrorMessage

func BuildH2PDefaultMessage

func BuildH2PDefaultMessage(hostID, hostName string) *protocol.PlatformMessage

host -> platform

func BuildHostBootReportInitMessage

func BuildHostBootReportInitMessage(bootInfo *protocol.HostBootDescriptor) *protocol.PlatformMessage

func BuildHostReportInitMessage

func BuildHostReportInitMessage(hostInfo *protocol.HostDescriptor) *protocol.PlatformMessage

func BuildInstanceDescriptor

func BuildInstanceDescriptor(description common_type.IInstanceDescription, hostID string) *protocol.PluginInstanceDescriptor

func BuildLifecycleMessage

func BuildLifecycleMessage(
	action protocol.ControlMessage_PluginActionType,
	host common_type.HostInfo,
	appID, instanceID, name, lang, langVer, appVer string,
	oldVersion *protocol.PluginDescriptor,
) *protocol.PlatformMessage

func BuildP2BDefaultMessage

func BuildP2BDefaultMessage(bootID, bootName string) *protocol.PlatformMessage

platform -> boot

func BuildP2BHeartbeatMessage

func BuildP2BHeartbeatMessage(bootID, bootName string) *protocol.PlatformMessage

func BuildP2HDefaultMessage

func BuildP2HDefaultMessage(hostID, hostName string) *protocol.PlatformMessage

platform -> host

func BuildP2HHeartbeatMessage

func BuildP2HHeartbeatMessage(hostID, hostName string) *protocol.PlatformMessage

func GetHostBootInfo

func GetHostBootInfo(bootID, bootName string) *protocol.RouterNode

func GetHostInfo

func GetHostInfo(hostID, hostName string) *protocol.RouterNode

func GetInitMessage

func GetInitMessage(source, distinct *protocol.RouterNode) *protocol.PlatformMessage

func GetPlatformInfo

func GetPlatformInfo() *protocol.RouterNode

func GetResourceInitMessage

func GetResourceInitMessage(source *protocol.PlatformMessage) *protocol.PlatformMessage

func IsLocalDB

func IsLocalDB(dbName string) bool

func NewProtocolVersion

func NewProtocolVersion(version common_type.IVersion) *protocol.Version

func SwapMessageHeader

func SwapMessageHeader(newMsg, comeMsg *protocol.PlatformMessage)

SwapMessageHeader 消息头 来源/去向 调换

func VersionPb2String

func VersionPb2String(version *protocol.Version) string

func VersionString2Pb

func VersionString2Pb(version string) *protocol.Version

Types

This section is empty.

Jump to

Keyboard shortcuts

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