queries

package
v0.0.0-...-3b707a1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateData

func CreateData(collection string, data map[string]interface{}) error

func CreateStaffQueue

func CreateStaffQueue(staff models.Staff) error

Create new staff data

func CreateUserQueue

func CreateUserQueue(user models.User) error

Create new user data

func GetData

func GetData(collection string, filter map[string]interface{}) ([]map[string]interface{}, error)

func GetStaffByAnything

func GetStaffByAnything(staff models.GetStaff) ([]models.Staff, error)

Get staff by whatever client gives

func GetStaffQueueByDiscordID

func GetStaffQueueByDiscordID(ID string) (models.Staff, error)

Check if staff discord id already been used

func GetStaffQueueByEmail

func GetStaffQueueByEmail(email string) (models.Staff, error)

Get staff by email

func GetStaffQueueById

func GetStaffQueueById(ID string) (models.Staff, error)

Check if discord id already been used

func GetUserQueueByEmail

func GetUserQueueByEmail(email string) (models.User, error)

Get user by email

func GetUserQueueById

func GetUserQueueById(ID string) (models.User, error)

Check if discord id already been used

func GetuserByAnything

func GetuserByAnything(user models.GetUser) ([]models.User, error)

Get user by whatever client gives

func UpdateDataByID

func UpdateDataByID(collection string, id interface{}, newData map[string]interface{}) error

func UpdateStaffQueue

func UpdateStaffQueue(uuid string, staff models.UpdateStaff) error

func UpdateUserQueue

func UpdateUserQueue(user models.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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