Commit graph

9 commits

Author SHA1 Message Date
8c1f6b0c43
Make cron as it's own package 2024-05-23 02:24:06 +07:00
fae32d9a74
chore: Make SQL queries in more readable 2024-05-20 03:08:48 +07:00
30b37b922f
Ability to list cron from CLI #2
Since `tbl_cron` will contain a few rows (for now just 1),
cron list function call is not using any arguments.

This commit also remove cron http handler and endpoint.
2024-05-18 20:13:00 +07:00
46bc3dc2e8
Using slog for logging level
The log level for the apps is using `log/slog` from Go standard library.
This commit change log format for fiber http logger to match with
the slog standard log format (date and time).

This commit also remove `APP_DEBUG` field from config struct.

TODO:
Use `slog` for default app output. Note that in this commit, the `slog`
output only implemented in `cron` "db migrate" and probe client.
2024-05-13 18:40:01 +07:00
5496692c5d
Avoid naming module using a domain name pattern
I hope it will be less discoverable by other users and less likely to
be used unintentionally in other projects.
2024-05-08 21:35:04 +07:00
738c0826c8
Delete old probe logs older than 1 month +2 days 2024-05-08 19:28:42 +07:00
8821ad7995
Make cron datatable filterable 2024-05-08 17:24:34 +07:00
9aad56103a
Delete old probe logs task 2024-05-06 18:40:09 +07:00
ced266159e
Copying my other project structure to this project 2024-05-04 00:11:56 +07:00