shadow

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceSnapshot

type DeviceSnapshot struct {
	DeviceKey    string
	Values       map[string]model.Value
	Version      int64
	LastUpdate   time.Time
	HealthStatus string
	// contains filtered or unexported fields
}

type ShadowCore

type ShadowCore struct {
	// contains filtered or unexported fields
}

func NewShadowCore

func NewShadowCore() *ShadowCore

func (*ShadowCore) Get

func (sc *ShadowCore) Get(deviceKey string) *DeviceSnapshot

func (*ShadowCore) GetAllDevices

func (sc *ShadowCore) GetAllDevices() []string

func (*ShadowCore) GetMetrics

func (sc *ShadowCore) GetMetrics() map[string]interface{}

func (*ShadowCore) GetValue

func (sc *ShadowCore) GetValue(deviceKey, pointID string) (model.Value, bool)

func (*ShadowCore) Remove

func (sc *ShadowCore) Remove(deviceKey string)

func (*ShadowCore) Update

func (sc *ShadowCore) Update(deviceKey string, values map[string]model.Value)

Jump to

Keyboard shortcuts

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