Discover Packages
github.com/Fabucik/ctf-portal
entities
package
Version:
v0.0.0-...-198ac2f
Opens a new window with list of versions in this module.
Published: May 19, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type AllPoints type Announcement type Announcements type AutomaticStart type Backup type Challenge type ChallengeFile type Challenges type Flag type ManualStart type ReturnChallenge type ReturnChallenges type Session type Sessions type StartStopInfo type TeamPoints type User type Users
Documentation
¶
type AllPoints struct {
Points []TeamPoints `json:"allpoints"`
}
type Announcement struct {
Message string `json:"message"`
ID int `json:"id"`
}
type Announcements struct {
Announcements []Announcement `json:"announcements"`
}
type AutomaticStart struct {
StartTime int64 `json:"starttime"`
StopTime int64 `json:"stoptime"`
IsValid bool `json:"isvalid"`
ID int `json:"id"`
}
type Backup struct {
Base64 string `json:"base64"`
}
type Challenge struct {
Name string `json:"name"`
Files []ChallengeFile `json:"files"`
Flag string `json:"flag"`
Points int `json:"points"`
Description string `json:"description"`
CountryCode string `json:"country"`
}
type ChallengeFile struct {
FileName string `json:"filename"`
Base64 string `json:"base64"`
}
type Challenges struct {
Challenges []Challenge `json:"challenges"`
}
type Flag struct {
Challenge string `json:"challenge"`
Value string `json:"value"`
}
type ManualStart struct {
IsStarted bool `json:"isstarted"`
IsValid bool `json:"isvalid"`
ID int `json:"id"`
}
type ReturnChallenge struct {
Name string `json:"name"`
Files []ChallengeFile `json:"files"`
Points int `json:"points"`
Description string `json:"description"`
CountryCode string `json:"country"`
}
this will be sent to the client, basically challenge struct stripped by the flag
type ReturnChallenges struct {
Challenges []ReturnChallenge `json:"challenges"`
}
type Session struct {
ID string `json:"id"`
Username string `json:"username"`
ExpiresIn int64 `json:"expiresin"`
}
type Sessions struct {
Sessions []Session `json:"sessions"`
}
this is used to write both of entries to the "database"
type TeamPoints struct {
Team string `json:"team"`
PointAmount int `json:"points"`
Solved string `json:"solved"`
ID int `json:"id"`
}
type User struct {
Username string `json:"username"`
Password string `json:"password"`
ID int `json:"id"`
}
type Users struct {
Users []User `json:"users"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.