Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
corec
command
Package main is the CoreC binary entry point: loads config, wires plugins via blank imports, starts the engine and hub, and handles OS signals.
|
Package main is the CoreC binary entry point: loads config, wires plugins via blank imports, starts the engine and hub, and handles OS signals. |
|
common
|
|
|
metrics
Package metrics provides lightweight metric collection primitives.
|
Package metrics provides lightweight metric collection primitives. |
|
observable
Package observable provides cross-cutting observability primitives (metrics, tracing, structured logging) shared across CoreC packages.
|
Package observable provides cross-cutting observability primitives (metrics, tracing, structured logging) shared across CoreC packages. |
|
testutil
Package testutil provides shared test helpers for driver reconnect behavior.
|
Package testutil provides shared test helpers for driver reconnect behavior. |
|
tlsutil
Package tlsutil provides shared TLS configuration helpers used by transports (mqtt, httppush) and drivers (modbus-tls) to avoid duplicating certificate-loading boilerplate.
|
Package tlsutil provides shared TLS configuration helpers used by transports (mqtt, httppush) and drivers (modbus-tls) to avoid duplicating certificate-loading boilerplate. |
|
trace
Package trace provides lightweight distributed tracing via context-propagated trace IDs and span tracking.
|
Package trace provides lightweight distributed tracing via context-propagated trace IDs and span tracking. |
|
util
Package util provides shared helper functions used across drivers, transports, and the rule engine.
|
Package util provides shared helper functions used across drivers, transports, and the rule engine. |
|
Package config provides configuration loading, parsing, and validation for CoreC.
|
Package config provides configuration loading, parsing, and validation for CoreC. |
|
Package core defines the central interface seams (Driver, Transport, Rule) and shared types for the CoreC IIoT data collection and control engine.
|
Package core defines the central interface seams (Driver, Transport, Rule) and shared types for the CoreC IIoT data collection and control engine. |
|
demo
|
|
|
chained/validate
command
Package main is a demo validation tool for chained-core topology scenarios.
|
Package main is a demo validation tool for chained-core topology scenarios. |
|
driver
|
|
|
all
Package all imports all driver packages to register their factories.
|
Package all imports all driver packages to register their factories. |
|
modbus
Package modbus implements the Modbus TCP and RTU protocol drivers for CoreC.
|
Package modbus implements the Modbus TCP and RTU protocol drivers for CoreC. |
|
opcua
Package opcua implements the OPC UA client driver for CoreC.
|
Package opcua implements the OPC UA client driver for CoreC. |
|
s7
Package s7 implements the Siemens S7 protocol driver for CoreC. Supports S7-200, S7-300, S7-400, S7-1200, and S7-1500 PLCs.
|
Package s7 implements the Siemens S7 protocol driver for CoreC. Supports S7-200, S7-300, S7-400, S7-1200, and S7-1500 PLCs. |
|
Package driverbase provides a reusable lifecycle skeleton for southbound drivers (Modbus, OPC UA, S7).
|
Package driverbase provides a reusable lifecycle skeleton for southbound drivers (Modbus, OPC UA, S7). |
|
Package e2e contains end-to-end integration tests that wire real driver and transport implementations together through the engine, verifying the full data-collection pipeline.
|
Package e2e contains end-to-end integration tests that wire real driver and transport implementations together through the engine, verifying the full data-collection pipeline. |
|
Package engine implements the core.Engine interface and orchestration pipeline.
|
Package engine implements the core.Engine interface and orchestration pipeline. |
|
statistic
Package statistic collects engine throughput counters (reads, publishes, errors) as atomic counters.
|
Package statistic collects engine throughput counters (reads, publishes, errors) as atomic counters. |
|
Package hub provides the control-plane HTTP/WebSocket API server and configuration executor for CoreC.
|
Package hub provides the control-plane HTTP/WebSocket API server and configuration executor for CoreC. |
|
executor
Package executor applies configuration changes to the running engine via diff-and-apply, minimizing disruption to active data flows.
|
Package executor applies configuration changes to the running engine via diff-and-apply, minimizing disruption to active data flows. |
|
route
Package route implements the CoreC RESTful API gateway: HTTP routing, middleware (CORS, rate limiting, authentication, request metrics), request handlers, WebSocket streams, and Prometheus-format metrics exposition.
|
Package route implements the CoreC RESTful API gateway: HTTP routing, middleware (CORS, rate limiting, authentication, request metrics), request handlers, WebSocket streams, and Prometheus-format metrics exposition. |
|
Package log wraps slog with CoreC-specific formatting and level control, providing structured logging primitives used throughout the codebase.
|
Package log wraps slog with CoreC-specific formatting and level control, providing structured logging primitives used throughout the codebase. |
|
Package rule provides the rule matching and routing engine for CoreC data points.
|
Package rule provides the rule matching and routing engine for CoreC data points. |
|
transport
|
|
|
all
Package all imports all transport packages to register their factories.
|
Package all imports all transport packages to register their factories. |
|
httppush
Package httppush implements the HTTP Push transport for CoreC.
|
Package httppush implements the HTTP Push transport for CoreC. |
|
mqtt
Package mqtt implements the MQTT transport for CoreC.
|
Package mqtt implements the MQTT transport for CoreC. |
|
parser
Package parser provides pluggable parsing of incoming transport payloads (MQTT messages, HTTP webhook bodies) into core.DataPoint values.
|
Package parser provides pluggable parsing of incoming transport payloads (MQTT messages, HTTP webhook bodies) into core.DataPoint values. |
Click to show internal directories.
Click to hide internal directories.