diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-01 19:35:57 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-01 20:03:42 +0100 |
commit | 53e0f24faade5b543f46e7d89544d92f3709bf7a (patch) | |
tree | a20adc0c8357ed9a6346f8609a0dcfbbd9dd5d5e /src/logTypes.hpp | |
parent | 53a42351b97db6c84fb930b9eb9c89d694956bca (diff) | |
download | webstat-53e0f24faade5b543f46e7d89544d92f3709bf7a.tar.bz2 webstat-53e0f24faade5b543f46e7d89544d92f3709bf7a.tar.xz webstat-53e0f24faade5b543f46e7d89544d92f3709bf7a.zip |
Tag entities with their typewebstat-0.1.1
Diffstat (limited to 'src/logTypes.hpp')
-rw-r--r-- | src/logTypes.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/logTypes.hpp b/src/logTypes.hpp index 7439733..687f43b 100644 --- a/src/logTypes.hpp +++ b/src/logTypes.hpp @@ -22,8 +22,17 @@ namespace WebStat { bool operator<=>(const CLFString &) const = default; }; + enum class EntityType : std::uint8_t { + Host, + VirtualHost, + Path, + QueryString, + Referrer, + UserAgent, + }; + using Crc32Value = uint32_t; - using Entity = std::pair<Crc32Value, std::string_view>; + using Entity = std::tuple<Crc32Value, EntityType, std::string_view>; } namespace scn { |