summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-12-24 15:27:23 +0100
committerBrian Picciano <mediocregopher@gmail.com>2023-12-24 15:27:23 +0100
commit8ca4861a23ed6f9f0148b548567a1cee14ab48fb (patch)
treed6cec50014f6815fccf8bef7e791f3b3e0a3270b
parent169cefa46c145bfe024a50cb62b141a4f2bcdc39 (diff)
Basic architecture diagram for a potential deadlink checker
-rw-r--r--src/deadlinks/architecture.mermaid21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/deadlinks/architecture.mermaid b/src/deadlinks/architecture.mermaid
new file mode 100644
index 0000000..bacf7c0
--- /dev/null
+++ b/src/deadlinks/architecture.mermaid
@@ -0,0 +1,21 @@
+flowchart LR
+ subgraph DeadLinks
+ URLs["`[]URL{
+ - URLString
+ - LastChecked
+ - Status
+ - DestURLs
+ - Pinned
+ }`"]
+ style URLs text-align:left
+
+ Cleaner -->|"periodically delete where\nnot linked to and not pinned"| URLs
+
+ CheckerWorker -->|getNext| Queue
+ Queue -->|iterate over stale| URLs
+ CheckerWorker -->|upsert| URLs
+ end
+
+ User -->|upsert pinned| URLs
+ User -->|notify pinned| Queue
+ User -->|query by state| URLs