digitaltwin

package
v0.0.0-...-555a65a Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandEnpoint

func AddCommandEnpoint(router *gin.Engine, controllCommandModel models.ControllCommandModel, connection physicaltwinconnection.Connection)

func AddSensorEnpoint

func AddSensorEnpoint(router *gin.Engine, digitalTwinId uuid.UUID, sensedPropertyModel models.SensedPropertyModel, connection physicaltwinconnection.Connection) error

Types

type DigitalTwin

type DigitalTwin struct {
	DigitalTwinId    uuid.UUID
	DigitalTwinModel models.DigitalTwinModel
	SystemDefinition serviceModels.SystemDefinition

	AdditionalServices []additionalservice.AdditionalService
	Router             *gin.Engine
	// contains filtered or unexported fields
}

func NewDigitalTwin

func NewDigitalTwin(digitalTwinModel models.DigitalTwinModel, additionalservices []additionalservice.AdditionalService, digitalTwinRegistry digitaltwinregistry.DigitalTwinRegistry, digitalTwinId uuid.UUID, systemDefinition serviceModels.SystemDefinition) (*DigitalTwin, error)

func (*DigitalTwin) StartDigitalTwin

func (digitalTwin *DigitalTwin) StartDigitalTwin() (*serviceModels.SystemDefinition, error)

func (*DigitalTwin) StopDigitalTwin

func (digitalTwin *DigitalTwin) StopDigitalTwin() error

type ImmediateSensorEndpoint

type ImmediateSensorEndpoint struct {
	SensedProperty
}

func (ImmediateSensorEndpoint) HandleRequest

func (immediateSensorEndpoint ImmediateSensorEndpoint) HandleRequest() (map[string]any, error)

type IntervalSensorEndpoint

type IntervalSensorEndpoint struct {
	SensedProperty
}

func (IntervalSensorEndpoint) HandleRequest

func (intervalSensorEndpoint IntervalSensorEndpoint) HandleRequest() (map[string]any, error)

type SensedProperty

type SensedProperty struct {
	DigitalTwinId uuid.UUID
	models.SensedPropertyModel
	// contains filtered or unexported fields
}

type SensorData

type SensorData struct {
	DigitalTwinId     uuid.UUID
	ServiceDefinition string
	SensedData        map[string]any
}

type SensorEndpoint

type SensorEndpoint interface {
	HandleRequest() (map[string]any, error)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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