Documentation
¶
Index ¶
- func CreateResult()
- func DeleteContest()
- func DeleteProblem()
- func DeleteResult()
- func DeleteUser()
- func EndDatabase(db *sql.DB)
- func InitDatabase() *sql.DB
- func RegisterProblem(problem settings.Problems)
- func RegisterResult(res Result_table)
- func RegisterUser(Student_id string, Student_password string)
- type Contest_table
- type LimitDescription
- type Problem_table
- type Result_table
- type SCase
- type TCase
- type User_table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResult ¶
func CreateResult()
func DeleteContest ¶
func DeleteContest()
func DeleteProblem ¶
func DeleteProblem()
func DeleteResult ¶
func DeleteResult()
func DeleteUser ¶
func DeleteUser()
func EndDatabase ¶
func InitDatabase ¶
func RegisterProblem ¶
func RegisterResult ¶
func RegisterResult(res Result_table)
func RegisterUser ¶
Types ¶
type Contest_table ¶
func ReadContest ¶
func ReadContest() Contest_table
type LimitDescription ¶
type LimitDescription struct {
Description string
}
type Problem_table ¶
type Problem_table struct {
ProblemNum string
ProblemTitle string
ProblemScore int
ProblemLimitTime int
ProblemLimitMemory int
ProblemDescription string
ProblemLimitationInput string
ProblemLimitationOutput string
ProblemInitialCode string
ProblemLimitationDescription []LimitDescription
TestCase []TCase
SecretCase []SCase
}
func ReadProblem ¶
func ReadProblem() []Problem_table
type Result_table ¶
func ReadResult ¶
func ReadResult() []Result_table
type User_table ¶
func ReadUser ¶
func ReadUser() []User_table
Click to show internal directories.
Click to hide internal directories.