aboutsummaryrefslogtreecommitdiff
path: root/core/constants.go
diff options
context:
space:
mode:
authorSam Scholten2026-08-30 12:50:24 +1000
committerSam Scholten2026-08-30 12:52:39 +1000
commit96ab2fcb2ff442698465389d75390afa91629165 (patch)
treeb36ef45dccaa791b0fce4dcad99d564635663c10 /core/constants.go
downloadfluxrec-96ab2fcb2ff442698465389d75390afa91629165.tar.gz
fluxrec-96ab2fcb2ff442698465389d75390afa91629165.zip
fluxrec: personal Miniflux article recommender
Diffstat (limited to 'core/constants.go')
-rw-r--r--core/constants.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/constants.go b/core/constants.go
new file mode 100644
index 0000000..baba926
--- /dev/null
+++ b/core/constants.go
@@ -0,0 +1,23 @@
+// Vendored from scholscan/core/constants.go (rev 7c1a5ef, 2026-08-28).
+// Owned here; no upstream sync.
+// Default configuration constants.
+//
+// Timeouts are defensive: 30s for HTTP requests, 5s for graceful shutdown.
+// Score threshold 0.5 is neutral; models should learn their own.
+// MinTitleLength filters junk/broken titles (<15 chars rarely meaningful).
+// ChunkSize 50 balances memory usage vs batch efficiency.
+package core
+
+import "time"
+
+const (
+ DefaultHTTPTimeout = 30 * time.Second
+ DefaultContextTimeout = 10 * time.Second
+ DefaultReadTimeout = 30 * time.Second
+ DefaultWriteTimeout = 30 * time.Second
+ DefaultIdleTimeout = 120 * time.Second
+ DefaultShutdownTimeout = 5 * time.Second
+ DefaultScoreThreshold = 0.5
+ MinTitleLength = 15
+ DefaultChunkSize = 50
+)