From 800178bdea531eab38b5a817efe5ce8afde62494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Nu=C3=B1ez-Cacho?= Date: Mon, 17 Apr 2023 09:53:35 +0200 Subject: [PATCH] modify README to include mermaid diagram --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b5b3cc1..dc049d9 100644 --- a/README.md +++ b/README.md @@ -88,3 +88,19 @@ Final goal would be to someone to use this tool and be able to use other source ![Diagram Flow](flow.jpg) + + +``` +graph LR + + A[Start Golang Daemon] --> B(Initialize App, ElasticSource, and GCPArmorActor) + B --> C(Start App) + C -->|Run Goroutines| D1(Fetch IPs from Elasticsearch) + C -->|Run Goroutines| D2(Manage Blocked IPs) + D1 --> E1(Interact with GCPArmorActor) + E1 --> E2(Block IPs using Google Cloud Armor) + D2 --> F1(Interact with GCPArmorActor) + F1 --> F2(Unblock IPs using Google Cloud Armor) + C --> G(Listen for Interrupt Signal) + G --> H[Stop Golang Daemon] +```