Discover Packages
github.com/CyberLabs-Infosec/isolet/goapi
models
package
Version:
v0.0.0-...-072ee57
Opens a new window with list of versions in this module.
Published: Jan 18, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AccessDetails struct {
Password string `json:"password"`
Port int32 `json:"port"`
Hostname string `json:"hostname"`
Deadline int64 `json:"deadline"`
}
type Challenge struct {
Level int `json:"level"`
Name string `json:"name"`
Prompt string `json:"prompt"`
Solves int `json:"solves"`
Tags []string `json:"tags"`
}
type Creds struct {
Email string `json:"email" form:"email"`
Password string `json:"password" form:"password"`
}
type ExtendDeadline struct {
Deadline int64 `json:"deadline"`
}
type Instance struct {
UserID int `json:"userid"`
Level int `json:"level"`
Password string `json:"password"`
Port string `json:"port"`
Verified bool `json:"verified"`
Hostname string `json:"hostname"`
Deadline int64 `json:"deadline"`
}
type Score struct {
Username string `json:"username"`
Score string `json:"score"`
}
type User struct {
UserID int `json:"userid"`
Email string `json:"email" form:"email"`
Username string `json:"username" form:"username"`
Password string `json:"password" form:"password"`
Confirm string `json:"confirm" form:"confirm"`
Rank int `json:"rank"`
}
type VerifyClaims struct {
jwt.RegisteredClaims
Email string `json:"email"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.