Commit Graph

8 Commits

Author SHA1 Message Date
ekzyis 7a913d0f27 Use PENDING for unpaid invoices 2023-12-02 21:47:20 +01:00
ekzyis 3445693ef4 Use context during invoice polling 2023-11-27 22:09:51 +01:00
ekzyis 73162155d5 Fix orphaned invoices with Tx and Context usage
txs are now rolled back on order error
2023-11-26 23:22:34 +01:00
ekzyis 6d7cd2573d Show user invoices 2023-11-26 22:35:51 +01:00
ekzyis 1351439a15 Run invoice checks on startup 2023-11-20 00:38:52 +01:00
ekzyis 4b0d017b98 Add invoice description 2023-11-20 00:38:52 +01:00
ekzyis c66e96bf3f refactor: fix init and use DI
* fix init misuse which makes running tests impossible since tests are run inside a temporary test directory which breaks env loading

* use dependency injection pattern for server creation and global server context in route handlers
2023-11-03 20:34:21 +01:00
ekzyis 7558655458 refactor: Structure code into different packages
I have put too much code into the same files.

Also, I put everything into the same package: main.

This package is only meant for executables.

Therefore, I have refactored my code to use multiple packages. These packages also guarantee separation of concerns since Golang doesn't allow cyclic imports.
2023-09-10 23:13:08 +02:00