diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 15:28:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:01:06 +0100 |
commit | 10b19d747805e4fd1323455dae419091500efc18 (patch) | |
tree | fe4ad542f9d97b35842f4387db4a698d3a7aea35 /src/ingestor.hpp | |
parent | b2416925f8845b70ed25fb4ec7cde8ef11e8c239 (diff) | |
download | webstat-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.hpp | 1 |
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); |