Documentation ¶
Index ¶
- Variables
- type Database
- func (d *Database) AddTeamMember(ctx context.Context, teamID uuid.UUID, name string, studentAge int, ...) error
- func (d *Database) CheckInStudent(ctx context.Context, email string) error
- func (d *Database) ConfirmStudent(ctx context.Context, email string, dietaryRestrictions, parentEmail string) error
- func (d *Database) DecrementEmailAllowance(ctx context.Context, email string) error
- func (d *Database) GetAdminTeamsWithTeacherName(ctx context.Context) ([]*TeamWithTeacherName, error)
- func (d *Database) GetAllDietaryRestrictions(ctx context.Context) ([]string, error)
- func (d *Database) GetStudentByEmail(ctx context.Context, email string) (*Student, error)
- func (d *Database) GetTeacherByEmail(ctx context.Context, email string) (*Teacher, error)
- func (d *Database) GetTeacherForTeam(ctx context.Context, teamID uuid.UUID) (*Teacher, error)
- func (d *Database) GetTeacherTeams(ctx context.Context, email string) ([]*Team, error)
- func (d *Database) GetTeam(ctx context.Context, email string, teamID uuid.UUID) (*Team, error)
- func (d *Database) GetTeamNoMembers(ctx context.Context, teamID uuid.UUID) (*Team, error)
- func (d *Database) IsEmailAdmin(ctx context.Context, email string) (bool, error)
- func (d *Database) IsEmailVolunteer(ctx context.Context, email string) (bool, error)
- func (d *Database) MarkCTFdPasswordSent(ctx context.Context, email string) error
- func (d *Database) MarkQRCodeSent(ctx context.Context, email string) error
- func (d *Database) NewTeacher(ctx context.Context, name, email string) error
- func (d *Database) RemoveTeamMember(ctx context.Context, teamID uuid.UUID, studentEmail string) error
- func (d *Database) SetEmailConfirmed(ctx context.Context, email string) error
- func (d *Database) SetTeacherSchoolInfo(ctx context.Context, email, schoolName, schoolCity, schoolState string) error
- func (d *Database) SignFormsForStudent(ctx context.Context, email, signatory string) error
- func (d *Database) UpsertTeam(ctx context.Context, teacherEmail string, teamID uuid.UUID, name string) error
- type Division
- type Student
- type Teacher
- type Team
- type TeamWithTeacherName
Constants ¶
This section is empty.
Variables ¶
View Source
var UpgradeTable dbutil.UpgradeTable
Functions ¶
This section is empty.
Types ¶
type Database ¶
func NewDatabase ¶
func (*Database) AddTeamMember ¶
func (*Database) CheckInStudent ¶
func (*Database) ConfirmStudent ¶
func (d *Database) ConfirmStudent(ctx context.Context, email string, dietaryRestrictions, parentEmail string) error
TODO: Add a paramter to get CTFd Username and pass that to update the student CTFd Username
func (*Database) DecrementEmailAllowance ¶
func (*Database) GetAdminTeamsWithTeacherName ¶
func (d *Database) GetAdminTeamsWithTeacherName(ctx context.Context) ([]*TeamWithTeacherName, error)
func (*Database) GetAllDietaryRestrictions ¶
func (*Database) GetStudentByEmail ¶
func (*Database) GetTeacherByEmail ¶
func (*Database) GetTeacherForTeam ¶
func (*Database) GetTeacherTeams ¶
func (*Database) GetTeamNoMembers ¶
func (*Database) IsEmailAdmin ¶
func (*Database) IsEmailVolunteer ¶
func (*Database) MarkCTFdPasswordSent ¶
func (*Database) MarkQRCodeSent ¶
func (*Database) NewTeacher ¶
func (*Database) RemoveTeamMember ¶
func (*Database) SetEmailConfirmed ¶
func (*Database) SetTeacherSchoolInfo ¶
func (*Database) SignFormsForStudent ¶
type Student ¶
type Student struct { TeamID uuid.UUID Email string Name string Age int ParentEmail string Signatory string CTFdPassword string // PreviouslyParticipated bool LiabilitySigned bool ComputerUseWaiverSigned bool EmailConfirmed bool // CampusTour bool DietaryRestrictions string QRCodeSent bool CheckedIn bool CTFdPasswordSent bool }
type TeamWithTeacherName ¶
Click to show internal directories.
Click to hide internal directories.