Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth provides tokens for calls to other services (SEC-03, CLI-10).
|
Package auth provides tokens for calls to other services (SEC-03, CLI-10). |
|
bpmntest
Package bpmntest builds BPMN documents for tests.
|
Package bpmntest builds BPMN documents for tests. |
|
Package client is the Go client of the Automation-Engine API (CLI-01 to CLI-10).
|
Package client is the Go client of the Automation-Engine API (CLI-01 to CLI-10). |
|
Package commons holds what several packages share about devices, services and aspects.
|
Package commons holds what several packages share about devices, services and aspects. |
|
Package crashbrake turns a fatal crash in a script evaluation from a crash loop into one crash (EXPR-03).
|
Package crashbrake turns a fatal crash in a script evaluation from a crash loop into one crash (EXPR-03). |
|
Package debug builds the state of an instance for the debugger (DBG-02), reconstructs it at a step of the history (DBG-13), derives the deltas of the live stream (DBG-03) and wakes the live streams of a replica when their instance changed (Hub, DBG-09).
|
Package debug builds the state of an instance for the debugger (DBG-02), reconstructs it at a step of the history (DBG-13), derives the deltas of the live stream (DBG-03) and wakes the live streams of a replica when their instance changed (Hub, DBG-09). |
|
Package deprecated serves the HTTP APIs of the services the engine replaces, under /deprecated/ (API-02).
|
Package deprecated serves the HTTP APIs of the services the engine replaces, under /deprecated/ (API-02). |
|
Package events derives event descriptions at deploy time and runs the event worker role, which evaluates device and import data and correlates matching events (EVT-01 to EVT-08).
|
Package events derives event descriptions at deploy time and runs the event worker role, which evaluates device and import data and correlates matching events (EVT-01 to EVT-08). |
|
Package fogsync synchronises the engine in the cloud with the engines on gateways: the cloud side (cloud.go), the gateway side (gateway.go) and the protocol between them (protocol.go).
|
Package fogsync synchronises the engine in the cloud with the engines on gateways: the cloud side (cloud.go), the gateway side (gateway.go) and the protocol between them (protocol.go). |
|
Package migrate moves the data of the Camunda based services into the engine (MIG-01 to MIG-09).
|
Package migrate moves the data of the Camunda based services into the engine (MIG-01 to MIG-09). |
|
legacyio
Package legacyio takes the values of process-io-worker on a gateway into the engine once, when the process module is updated and the old Postgres volume is still there (MIG-06).
|
Package legacyio takes the values of process-io-worker on a gateway into the engine once, when the process module is updated and the old Postgres volume is still there (MIG-06). |
|
rewrite
Package rewrite turns models written for Camunda 7 into the model format of this engine (MIG-04): JUEL becomes JavaScript, Groovy logging becomes log, external task topics become task types, the http-connector becomes a notification or an HTTP call, and message names with expressions become senergy:messageName.
|
Package rewrite turns models written for Camunda 7 into the model format of this engine (MIG-04): JUEL becomes JavaScript, Groovy logging becomes log, external task topics become task types, the http-connector becomes a notification or an HTTP call, and message names with expressions become senergy:messageName. |
|
Package modules runs the module task types of smart services and other namespaces (TASK-20 to TASK-29) and keeps their resources: removal through the outbox and health checks.
|
Package modules runs the module task types of smart services and other namespaces (TASK-20 to TASK-29) and keeps their resources: removal through the outbox and health checks. |
|
compat
Package compat keeps the module task types compatible with the former smart service module workers (TASK-28): string inputs are templates over the instance variables, and prescript and postscript inputs run with the script API of smart-service-module-worker-lib, ported from that library.
|
Package compat keeps the module task types compatible with the former smart service module workers (TASK-28): string inputs are templates over the instance variables, and prescript and postscript inputs run with the script API of smart-service-module-worker-lib, ported from that library. |
|
Package mqtt connects to MQTT brokers: the broker of a gateway in fog mode (FOG-01) and the cloud broker for the synchronisation (SYNC-04).
|
Package mqtt connects to MQTT brokers: the broker of a gateway in fog mode (FOG-01) and the cloud broker for the synchronisation (SYNC-04). |
|
Package namespaces keeps the namespaces in the database and in a cache (NS-02).
|
Package namespaces keeps the namespaces in the database and in a cache (NS-02). |
|
Package notification sends user notifications through the notifier and copies them to developer-notifications, in the format process-incident-api uses today (INC-02), and is the task type "notification" of processes (Task, BPMN-09).
|
Package notification sends user notifications through the notifier and copies them to developer-notifications, in the format process-incident-api uses today (INC-02), and is the task type "notification" of processes (Task, BPMN-09). |
|
Package permissions connects the engine to permissions-v2 (NS-05, SEC-01, SEC-07, SEC-10).
|
Package permissions connects the engine to permissions-v2 (NS-05, SEC-01, SEC-07, SEC-10). |
|
Package prepare tells what a user chooses before a deploy or a start: the devices, device groups and imports a deployment can select for its device tasks and device events (DEP-01), through device-selection, and the start parameters with their choices (Describer, SMS-08).
|
Package prepare tells what a user chooses before a deploy or a start: the devices, device groups and imports a deployment can select for its device tasks and device events (DEP-01), through device-selection, and the start parameters with their choices (Describer, SMS-08). |
|
Package scriptdoc generates the documentation of the two JavaScript environments of the engine into docs/scripts: the pre- and postscripts of module tasks (pkg/modules/compat), as typescript declarations, jsdoc and ace completer like smart-service-module-worker-lib did, and the scripts and expressions of BPMN models (pkg/script).
|
Package scriptdoc generates the documentation of the two JavaScript environments of the engine into docs/scripts: the pre- and postscripts of module tasks (pkg/modules/compat), as typescript declarations, jsdoc and ace completer like smart-service-module-worker-lib did, and the scripts and expressions of BPMN models (pkg/script). |
|
generate
command
generate writes the script documentation to docs/scripts; run by go generate in pkg/scriptdoc.
|
generate writes the script documentation to docs/scripts; run by go generate in pkg/scriptdoc. |
|
Package server wires store, engine, controller and HTTP API.
|
Package server wires store, engine, controller and HTTP API. |
|
storetest
Package storetest opens stores for tests: SQLite in memory and Postgres in a container.
|
Package storetest opens stores for tests: SQLite in memory and Postgres in a container. |
|
tasks
|
|
|
devicecommand
Package devicecommand is the task type "device_command" (TASK-01 to TASK-12): it resolves device, service and protocol, marshals the command, sends it to the protocol handler and completes the task with the unmarshalled answer, for single devices and device groups.
|
Package devicecommand is the task type "device_command" (TASK-01 to TASK-12): it resolves device, service and protocol, marshals the command, sends it to the protocol handler and completes the task with the unmarshalled answer, for single devices and device groups. |
|
deviceconnection
Package deviceconnection is the task type "device_connection": it reads the connection state of the device selected for the task (SNRGY-5151).
|
Package deviceconnection is the task type "device_connection": it reads the connection state of the device selected for the task (SNRGY-5151). |
|
httpcall
Package httpcall is the task type "http" for HTTP calls users define (BPMN-10): method, URL, headers and body as inputs, statusCode and response as outputs.
|
Package httpcall is the task type "http" for HTTP calls users define (BPMN-10): method, URL, headers and body as inputs, statusCode and response as outputs. |
|
processio
Package processio is the key-value store of processes (IO-01 to IO-03): the task type "process_io" and the store behind the IO API.
|
Package processio is the key-value store of processes (IO-01 to IO-03): the task type "process_io" and the store behind the IO API. |
|
Package tracing carries OpenTelemetry trace context and baggage through the engine, as the other platform services do with gin-middleware/otelx: incoming requests, outgoing requests to platform services, log records and the background execution of instances.
|
Package tracing carries OpenTelemetry trace context and baggage through the engine, as the other platform services do with gin-middleware/otelx: incoming requests, outgoing requests to platform services, log records and the background execution of instances. |
|
Package transfer moves the deployments of a gateway into a new cloud (SNRGY-5066): the subcommand export-gateway reads them on the gateway, PUT /networks/{id}/import takes them in the cloud.
|
Package transfer moves the deployments of a gateway into a new cloud (SNRGY-5066): the subcommand export-gateway reads them on the gateway, PUT /networks/{id}/import takes them in the cloud. |
Click to show internal directories.
Click to hide internal directories.