Private
Public Access
1
0
Commit Graph

13 Commits

Author SHA1 Message Date
c9481d12c6 feat(db): migrate from MySQL to PostgreSQL
All checks were successful
continuous-integration/drone/push Build is passing
Replace MySQL driver with pgx/v5 and pgxpool:
- Update sqlc to use postgresql engine
- Convert query.sql to PostgreSQL syntax ($1 params, CASE WHEN,
  ANY() arrays)
- Replace sql.DB with pgxpool.Pool throughout
- Change nullable types from sql.Null* to pgtype.*
- Update ID types from uint32 to int64 for PostgreSQL compatibility
- Delete MySQL-specific dynamic_connect.go
- Add opentelemetry.gowrap template for tracing
2025-11-29 10:59:15 -08:00
196f90a2b9 fix(db): use int for netspeed_active to prevent overflow
All checks were successful
continuous-integration/drone/push Build is passing
GetZoneStatsData and GetZoneStatsV2's netspeed_active values can
exceed 2 billion, causing 32-bit integer overflow. Changed from
int32/uint32 to int (64-bit on modern systems) to handle large
network speed totals.

- Update sqlc column overrides to use int type
- Fix type compatibility in dnsanswers.go zoneTotals map
- Regenerate database code with new types

Fixes https://community.ntppool.org/t/error-message-displayed-on-the-monitoring-score-page/4063
2025-09-21 00:08:21 -07:00
2dfc355f7c style: format Go code with gofumpt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Apply consistent formatting to Go source files using gofumpt
as required by pre-commit guidelines.
2025-08-03 16:06:59 -07:00
9c6ea595f1 dnsanswers: tracing adjustments 2023-12-10 15:11:26 -08:00
e824274998 Add png graph handler
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-09 13:54:13 -08:00
37d66b073e Fix 'unsupported value: +Inf' error when the zone doesn't have active servers
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-21 15:10:42 -08:00
f85f09ebcf Small error handling updates
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-22 16:28:24 -07:00
ceddc2564d Update tracing API
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-22 12:01:43 -07:00
f9b521664d Add tracing 2023-10-14 04:01:43 -07:00
ca2cdaf458 Go 1.21.1, log/slog, dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2023-09-17 23:12:33 -07:00
27c8bc4776 Calculate netspeed points, too
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-16 02:40:50 -07:00
b10134b3da basic cache-control headers for the dns answers api
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-15 20:36:45 -07:00
a89579f072 API for ratios of DNS answers oer server 2023-07-08 21:59:06 -07:00