apiary/models/attempt.go
2021-04-10 07:58:01 +02:00

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"`
}