From 53e0f24faade5b543f46e7d89544d92f3709bf7a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 1 Sep 2025 19:35:57 +0100 Subject: Tag entities with their type --- src/logTypes.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/logTypes.hpp') 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; + using Entity = std::tuple; } namespace scn { -- cgit v1.2.3