summaryrefslogtreecommitdiff
path: root/src/logTypes.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logTypes.hpp')
-rw-r--r--src/logTypes.hpp11
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 {