Backend foundation: Go API with Gin, Logrus, GORM and Swaggo #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jonasled/openpbx#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Base of the Go backend.
Done in
2409a78. Gin, Logrus, GORM, Swagger UI at/swagger/index.html, configuration viaOPENPBX_*. The SIP integration suite passes on SQLite, MariaDB 11 and PostgreSQL 17. No performance or load benchmark was run.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.