cloudconnection

package
v1.20.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

View Source
const (
	CloudConnected    = "cloud_connected"
	CloudDisconnected = "cloud_disconnected"
)

constants for cloud connection

Variables

View Source
var (

	// ErrConnectionLost is sentinel err to indicate connection is lost between EdgeCore and CloudCore
	ErrConnectionLost = errors.New("connection lost between EdgeCore and CloudCore")
)

Functions

func IsConnected added in v1.13.0

func IsConnected() bool

IsConnected return isCloudConnected

func SetConnected added in v1.13.0

func SetConnected(isConnected bool)

SetConnected set isCloudConnected value true indicates edge and cloud establish connection successfully false indicates edge and cloud connection interrupted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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