mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-01 08:06:02 +00:00
First step of Go rewrite — separates MQTT ingestion from the Node.js web server. Single static binary (no CGO) that connects to MQTT brokers, decodes MeshCore packets, and writes to the shared SQLite DB. Ported from JS: - decoder.js → decoder.go (header, path, all payload types, adverts) - computeContentHash → Go (SHA-256, path-independent) - db.js v3 schema → db.go (transmissions, observations, nodes, observers) - server.js MQTT logic → main.go (multi-broker, reconnect, IATA filter) 25 Go tests passing (golden fixtures from production + schema compat). No existing JS files modified. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
24 lines
706 B
Modula-2
24 lines
706 B
Modula-2
module github.com/meshcore-analyzer/ingestor
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/eclipse/paho.mqtt.golang v1.5.0
|
|
modernc.org/sqlite v1.34.5
|
|
)
|
|
|
|
require (
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/gorilla/websocket v1.5.3 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
golang.org/x/net v0.27.0 // indirect
|
|
golang.org/x/sync v0.7.0 // indirect
|
|
golang.org/x/sys v0.22.0 // indirect
|
|
modernc.org/libc v1.55.3 // indirect
|
|
modernc.org/mathutil v1.6.0 // indirect
|
|
modernc.org/memory v1.8.0 // indirect
|
|
)
|