Commit graph

12 commits

Author SHA1 Message Date
ditatompel
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
ditatompel
ce830c393b
Change PRC prober user agent info
Use the repository URL instead my email address for prober user agent
information.
2024-05-13 14:56:29 +07:00
ditatompel
d3113bf598
feat: MySQL db migration
Create database schema migration for this app that run when the `serve`
command is executed.
2024-05-12 04:19:40 +07:00
ditatompel
bd37f17072
Include date_entered when inporting from old API
When importing from old API endpoint, also get the `date_entered` field
and insert to database.
2024-05-12 01:35:41 +07:00
ditatompel
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
ditatompel
2c7e1a4fdb
Add import command (temporary)
This command only available during migration process and will be removed
in future versions.
2024-05-06 23:53:23 +07:00
ditatompel
3b0420d950
Fix accept_tor query param.
The query param for "accept_tor" is wrong.

Morale of the story: Never code when you're drunk
2024-05-06 22:53:23 +07:00
ditatompel
1baddfd2d1
Process submitted job from prober 2024-05-05 01:42:47 +07:00
ditatompel
9b8182082a
Nothing important, just remove print debug info 2024-05-04 22:56:59 +07:00
ditatompel
e9577b9bcf
Follow the monero RPC response
This commit change database name and MoneroNode struct:

- `NodeVersion` to `Version`
- `LastHeight` to `Height`

This commit also add `Status` to the MoneroNode struct.
2024-05-04 22:53:03 +07:00
ditatompel
8724b81431
Probe (client) check remote node
Please note that this commit is not complete. I commit to the repo
because I have something to do with my another project. Just don't
want to lost my work for the last couple hours.
2024-05-04 22:36:57 +07:00
ditatompel
ced266159e
Copying my other project structure to this project 2024-05-04 00:11:56 +07:00