summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/types.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/data/types.go b/data/types.go
new file mode 100644
index 0000000..3becae8
--- /dev/null
+++ b/data/types.go
@@ -0,0 +1,23 @@
+package data
+
+import "io"
+
+type LogEntry struct {
+ // requeted resource
+ Host string
+ Path string
+ URL string
+ Status int
+ // client network
+ CountryCode string
+ IP string
+ ASN int
+ // client info
+ UserAgent string
+ JA4 string
+ JA3 string
+}
+
+type LogReader interface {
+ Read(input io.Reader) ([]LogEntry, error)
+}