Backend foundation: Go API with Gin, Logrus, GORM and Swaggo #1

Closed
opened 2026-11-27 13:47:54 +00:00 by jonasled · 2 comments
Owner

Base of the Go backend.

  • Gin HTTP server, Logrus logging, GORM models, Swaggo-generated OpenAPI docs
  • API-first: the web UI only uses the public REST API
  • Configuration via environment variables
  • Supported databases: SQLite, MariaDB, PostgreSQL
  • Optimized for low resource usage
Base of the Go backend. - Gin HTTP server, Logrus logging, GORM models, Swaggo-generated OpenAPI docs - API-first: the web UI only uses the public REST API - Configuration via environment variables - Supported databases: SQLite, MariaDB, PostgreSQL - Optimized for low resource usage
Author
Owner

Done in 2409a78. Gin, Logrus, GORM, Swagger UI at /swagger/index.html, configuration via OPENPBX_*. The SIP integration suite passes on SQLite, MariaDB 11 and PostgreSQL 17. No performance or load benchmark was run.

Done in 2409a78. Gin, Logrus, GORM, Swagger UI at `/swagger/index.html`, configuration via `OPENPBX_*`. The SIP integration suite passes on SQLite, MariaDB 11 and PostgreSQL 17. No performance or load benchmark was run.
Author
Owner

Found and fixed a bug that existed since the first version: on MariaDB, all list fields (call flow steps, speed dials, blocked callers, group members, allowed extensions, trunk IPs, office hours) were stored in varchar(255), so saving failed with "internal error" once they grew. The earlier MariaDB test runs used data too small to hit it. Existing databases are widened automatically on start. A test with large lists was run on SQLite, MariaDB and PostgreSQL, and the SIP suite (25 tests) passes on all three.

Found and fixed a bug that existed since the first version: on **MariaDB**, all list fields (call flow steps, speed dials, blocked callers, group members, allowed extensions, trunk IPs, office hours) were stored in `varchar(255)`, so saving failed with "internal error" once they grew. The earlier MariaDB test runs used data too small to hit it. Existing databases are widened automatically on start. A test with large lists was run on SQLite, MariaDB and PostgreSQL, and the SIP suite (25 tests) passes on all three.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonasled/openpbx#1
No description provided.