22 lines
505 B
Go
22 lines
505 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
"time"
|
||
|
|
||
|
"github.com/google/uuid"
|
||
|
)
|
||
|
|
||
|
type LoginAttempts []LoginAttempt
|
||
|
|
||
|
type LoginAttempt struct {
|
||
|
ID int `json:"id"`
|
||
|
Date time.Time `json:"date"`
|
||
|
RemoteIP net.IP `json:"remoteIP"`
|
||
|
Username string `json:"username"`
|
||
|
Password string `json:"password"`
|
||
|
SSHClientVersion string `json:"sshClientVersion"`
|
||
|
ConnectionUUID uuid.UUID `json:"connectionUUID"`
|
||
|
Country string `json:"country"`
|
||
|
}
|