mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
add index to access log entries
This commit is contained in:
@@ -16,14 +16,14 @@ type AccessLogEntry struct {
|
|||||||
ProxyID string `gorm:"index"`
|
ProxyID string `gorm:"index"`
|
||||||
Timestamp time.Time `gorm:"index"`
|
Timestamp time.Time `gorm:"index"`
|
||||||
GeoLocation peer.Location `gorm:"embedded;embeddedPrefix:location_"`
|
GeoLocation peer.Location `gorm:"embedded;embeddedPrefix:location_"`
|
||||||
Method string
|
Method string `gorm:"index"`
|
||||||
Host string
|
Host string `gorm:"index"`
|
||||||
Path string
|
Path string `gorm:"index"`
|
||||||
Duration time.Duration
|
Duration time.Duration `gorm:"index"`
|
||||||
StatusCode int
|
StatusCode int `gorm:"index"`
|
||||||
Reason string
|
Reason string
|
||||||
UserId string
|
UserId string `gorm:"index"`
|
||||||
AuthMethodUsed string
|
AuthMethodUsed string `gorm:"index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// FromProto creates an AccessLogEntry from a proto.AccessLog
|
// FromProto creates an AccessLogEntry from a proto.AccessLog
|
||||||
|
|||||||
Reference in New Issue
Block a user