Commit Graph

8 Commits

Author SHA1 Message Date
Mohamed Sohail 6b71657e5b
sohail/update deps structure (#5)
* refactor: syncer structure

- move syncer jobs to internal dir

* refactor: queries struct and pkg updates

- update cic-go to latest
- separate sql queries by logic

* ci: add dependabot
2022-05-11 12:32:11 +03:00
Mohamed Sohail 9882a9ddc6
refactor: move pkg's out
- to cic_go
2022-05-06 16:53:57 +03:00
Mohamed Sohail b4a7668ca4
fix: (redis) parse redis dsn 2022-05-05 19:58:27 +03:00
Mohamed Sohail a68ae5a9eb
fix: (redis) bootstrap connection struct properly 2022-05-05 19:39:25 +03:00
Mohamed Sohail 9c6310440c
refactor: syncer structure and async bootstrapping
- asynq bootstrap handlers
- graceful shutdown of goroutines
- remove unnecessary global App struct
- unmarhsal toml/env to koanf struct
2022-05-05 15:01:34 +03:00
Mohamed Sohail 1c65a11460
add: ussd and cache syncer tasks
- no repeat on failure, picked up on next schedule
- enforce uniq on users and tx table to prevent duplicates
2022-05-03 21:37:48 +03:00
Mohamed Sohail 05ab865c63
add: token syncer
core:
- add koanf for runtime config loading
- cicnet connection must dial else panic
- add db connection init
- add goyesql for convenient querying
- add async tasker processor (scheduler, processor)

dev:
- add redis server to dev docker-compose
- update volume to prune-able local
2022-05-03 18:54:51 +03:00
Mohamed Sohail b7452778d5
project: init
- create dw db structure
- write remote syncer queries
2022-04-25 18:29:38 +03:00