enums

package
v0.0.0-...-16d05a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package enums includes enums used in the models

Index

Constants

View Source
const (
	MajorAny                     = Major(0)
	FacultyInformationTechnology = MajorSoftwareEngineering | MajorComputerScience | MajorCyberSecurity
)

Major constants parent faculties

Variables

This section is empty.

Functions

This section is empty.

Types

type Major

type Major uint64

Major represents a major enum

const (
	MajorSoftwareEngineering Major = 1 << iota
	MajorComputerScience
	MajorCyberSecurity
)

Major constants TODO: add more majors :)

func (Major) String

func (m Major) String() string

String returns the major's text

type OrganizerRole

type OrganizerRole uint64

OrganizerRole represents the organizer's role in a contest

const (
	RoleDirector OrganizerRole = 1 << iota
	RoleCoreOrganizer
	RoleChiefJudge
	RoleJudge
	RoleTechnical
	RoleCoordinator
	RoleMedia
	RoleBalloons
	RoleFood
	RoleReceptionist
)

OrganizerRole constants

func (OrganizerRole) GetRoles

func (roles OrganizerRole) GetRoles() []string

GetRoles returns a string slice that represents the organizer's roles

type ProfileStatus

type ProfileStatus int64
const (
	ProfileStatusFresh ProfileStatus = 1 << iota
	ProfileStatusContestantFinished
	ProfileStatusOrganizerFinished
)

type UserType

type UserType uint64

UserType represent user's privileges in Ross

const (
	UserTypeFresh UserType = 1 << iota
	UserTypeContestant
	UserTypeOrganizer
	UserTypeDirector
	UserTypeAdmin
)

UserType constants

func (UserType) GetTypes

func (t UserType) GetTypes() (types []string)

GetTypes returns a string slice that represents the user's types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL