services

package
v0.0.0-...-4811c58 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BanTeam

func BanTeam(team uuid.UUID) error

func CheckTeamCode

func CheckTeamCode(code string) bool

func CheckTeamSize

func CheckTeamSize(team_id uuid.UUID) bool

func CheckUserInTeam

func CheckUserInTeam(id uuid.UUID, teamid uuid.UUID) bool

func CheckUserTeam

func CheckUserTeam(userid uuid.UUID) error

func CreateTeam

func CreateTeam(team models.Team) error

func DeleteTeam

func DeleteTeam(teamid uuid.UUID, userid uuid.UUID) error

func FindTeamByCode

func FindTeamByCode(code string) (models.Team, error)

func FindTeamByTeamID

func FindTeamByTeamID(team_id uuid.UUID) (models.GetTeam, error)

func GetAllTeams

func GetAllTeams() ([]models.AdminGetTeam, error)

func UnbanTeam

func UnbanTeam(team uuid.UUID) error

func UpdateTeamName

func UpdateTeamName(teamName string, id uuid.UUID) error

func UpdateUserTeamDetails

func UpdateUserTeamDetails(teamid uuid.UUID, id uuid.UUID) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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