summaryrefslogtreecommitdiff
path: root/data/types.go
blob: 3becae82811ae328d915d04d5c82fdcfc45c2371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
}