Go service that connects to aisstream.io websocket, filtered by MMSIs from track_devices table. Writes positions to aisstream_pos (24h TTL) and upserts latest position per vessel to aisstream_last. Reloads MMSI list every 5 minutes to pick up changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
103 B
Modula-2
8 lines
103 B
Modula-2
module aisstream
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/lib/pq v1.10.9
|
|
)
|