core_client

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateDeviceRequest clients.ServerSubject = "client.%s.core.v1alpha.create"
	UpdateDeviceRequest clients.ServerSubject = "client.%s.core.v1alpha.update"
	DeleteDeviceRequest clients.ServerSubject = "client.%s.core.v1alpha.delete"
	ListDeviceRequest   clients.ServerSubject = "client.%s.core.v1alpha.list"

	DeviceOnlineEvent  clients.ServerSubject = "event.%s.core.v1alpha.deviceonline"
	DeviceOfflineEvent clients.ServerSubject = "event.%s.core.v1alpha.deviceoffline"
	DeviceCreatedEvent clients.ServerSubject = "event.%s.core.v1alpha.devicecreated"
	DeviceDeletedEvent clients.ServerSubject = "event.%s.core.v1alpha.devicedeleted"
	DeviceUpdatedEvent clients.ServerSubject = "event.%s.core.v1alpha.deviceupdated"

	HearthbeatDeviceStream clients.ServerSubject = "device.%s.core.v1alpha.hearthbeat"
	SchemaDeviceStream     clients.ServerSubject = "device.%s.core.v1alpha.schema"
)

Variables

This section is empty.

Functions

func PublishDeviceCreatedEvent

func PublishDeviceCreatedEvent(bus *nats.Conn, originalInstance string, deviceId string, d mir_v1.Device) error

func PublishDeviceDeletedEvent

func PublishDeviceDeletedEvent(bus *nats.Conn, originalInstance string, deviceId string, d mir_v1.Device) error

func PublishDeviceUpdatedEvent

func PublishDeviceUpdatedEvent(bus *nats.Conn, originalInstance string, deviceId string, d mir_v1.Device) error

func PublishHearthbeatStream

func PublishHearthbeatStream(bus *nats.Conn, deviceId string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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