Documentation ¶
Index ¶
- func CanAddStaff(user_id uint, tournament_id uint) error
- func CanEditRounds(user_id uint, tournament_id uint) error
- func CanEditTournament(user_id uint, tournament_id uint) error
- func CanJudge(user_id uint, tournament_id uint) error
- func CanViewTournament(user_id uint, tournament_id uint) (structs.Tournament, error)
- func CheckAuth(token string) (string, error)
- func DefaultErrorMessage(c *fiber.Ctx, err error, code int) error
- func GetRequestFilter(c *fiber.Ctx) structs.RequestFilter
- func GetSelfFromDB(c *fiber.Ctx) (structs.User, error)
- func GetTokenFromRequest(c *fiber.Ctx) (string, error)
- func GetTournament(tournament_id uint) (structs.Tournament, error)
- func GetUserFromSession(sessionToken string) (structs.User, error)
- func IsSuperadmin(c *fiber.Ctx) error
- func StringToUint32(s string) (uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanAddStaff ¶
func CanEditRounds ¶
func CanEditTournament ¶
func CanViewTournament ¶
func CanViewTournament(user_id uint, tournament_id uint) (structs.Tournament, error)
func DefaultErrorMessage ¶
func GetRequestFilter ¶
func GetRequestFilter(c *fiber.Ctx) structs.RequestFilter
func GetSelfFromDB ¶
func GetTokenFromRequest ¶
func GetTournament ¶
func GetTournament(tournament_id uint) (structs.Tournament, error)
func IsSuperadmin ¶
func IsSuperadmin(c *fiber.Ctx) error
func StringToUint32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.