Documentation ¶
Index ¶
- func AddCommandEnpoint(router *gin.Engine, controllCommandModel models.ControllCommandModel, ...)
- func AddSensorEnpoint(router *gin.Engine, digitalTwinId uuid.UUID, ...) error
- type DigitalTwin
- type ImmediateSensorEndpoint
- type IntervalSensorEndpoint
- type SensedProperty
- type SensorData
- type SensorEndpoint
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 SensorEndpoint ¶
Click to show internal directories.
Click to hide internal directories.