Go to file
sneak 1157003db7 Refactor database handlers and optimize PeeringHandler
- Create PeeringHandler for asn_peerings table maintenance
- Rename DBHandler to ASHandler (now only handles asns table)
- Move prefixes table maintenance to PrefixHandler
- Optimize PeeringHandler with in-memory AS path tracking:
  - Stores AS paths in memory with timestamps
  - Processes peerings in batch every 2 minutes
  - Prunes old paths (>30 minutes) every 5 minutes
  - Normalizes peerings with lower AS number first
- Each handler now has a single responsibility:
  - ASHandler: asns table
  - PeerHandler: bgp_peers table
  - PrefixHandler: prefixes and live_routes tables
  - PeeringHandler: asn_peerings table
2025-07-28 02:31:04 +02:00
cmd Add custom logger with source location tracking and remove verbose database logs 2025-07-28 01:14:51 +02:00
docs Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
internal Refactor database handlers and optimize PeeringHandler 2025-07-28 02:31:04 +02:00
pkg/asinfo Remove BGP keepalive logging and add peer tracking 2025-07-27 21:54:58 +02:00
.gitignore Extract database schema to separate SQL file 2025-07-27 22:38:51 +02:00
.golangci.yml Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
CLAUDE.md Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
go.mod Add custom logger with source location tracking and remove verbose database logs 2025-07-28 01:14:51 +02:00
go.sum Add custom logger with source location tracking and remove verbose database logs 2025-07-28 01:14:51 +02:00
Makefile Replace live_routes database table with in-memory routing table 2025-07-27 23:16:19 +02:00