Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Rewrite project architecture #3

Merged
merged 7 commits into from Dec 26, 2022
Merged

Rewrite project architecture #3

merged 7 commits into from Dec 26, 2022

Conversation

yallxe
Copy link
Owner

@yallxe yallxe commented Dec 25, 2022

New project architecture. Still WIP.

The idea is to create a cargo workspace, composed from next projects:

  • hogg-daemon, which will be something like a core, which is forever running in the system. It does tasks like DNS Proxy, Daemon API, etc.
  • hogg-cli, a CLI which will be managing the daemon via daemon API.
  • hogg-gui, same as hogg-cli, but GUI.
  • ... (?)

The pull request should be pushed into the base branch when the functionality reaches current master branch. For now, this rewrite branch lacks notifications, but I'm thinking of moving notifications out from the daemon.

implemented websites scanning cache using HashMap<String, u64>, where String is a domain and u64 is a last scan timestamp in seconds.

The timestamp is acquired using chrono::Utc::now().timestamp()
@yallxe yallxe marked this pull request as draft December 26, 2022 19:45
@yallxe yallxe marked this pull request as ready for review December 26, 2022 19:50
@yallxe
Copy link
Owner Author

yallxe commented Dec 26, 2022

It turns out that telegram notifications will be temporary removed. I'm thinking of creating a YAML file for 'notifications webhooks', where you can compose HTTP request which can accept parameters, which hogg will give there (such as detection url, detection name, etc.).

@yallxe yallxe merged commit 6407a09 into master Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant