summaryrefslogtreecommitdiff
path: root/src/ingestor.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-23 15:28:56 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-08-25 16:01:06 +0100
commit10b19d747805e4fd1323455dae419091500efc18 (patch)
treefe4ad542f9d97b35842f4387db4a698d3a7aea35 /src/ingestor.hpp
parentb2416925f8845b70ed25fb4ec7cde8ef11e8c239 (diff)
downloadwebstat-10b19d747805e4fd1323455dae419091500efc18.tar.bz2
webstat-10b19d747805e4fd1323455dae419091500efc18.tar.xz
webstat-10b19d747805e4fd1323455dae419091500efc18.zip
Add helpers for hashing values extracted from log input
zlib's crc32 used here, the interface is a bit C and as a result a bit casty, but it'll work.
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r--src/ingestor.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp
index 97ce9f9..3bb9ddd 100644
--- a/src/ingestor.hpp
+++ b/src/ingestor.hpp
@@ -10,6 +10,7 @@ namespace WebStat {
using ScanResult = decltype(scn::scan<std::string_view, std::string_view, uint64_t, std::string_view,
QuotedString, QueryString, std::string_view, unsigned short, unsigned int, unsigned int, CLFString,
CLFString>(std::declval<std::string_view>(), ""));
+ using ScanValues = std::remove_cvref_t<decltype(std::declval<WebStat::Ingestor::ScanResult>()->values())>;
[[nodiscard]] static ScanResult scanLogLine(std::string_view);