apiary/models/attempt.go

22 lines
505 B
Go
Raw Normal View History

2021-04-10 05:58:01 +00:00
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"`
}