Documentation ¶
Index ¶
- func GetCommission(orm *orm.ORM, id uuid.UUID) (*models.Commission, error)
- func GetCommissionedMini(orm *orm.ORM, id uuid.UUID) (*models.CommissionedMini, error)
- func GetCommissionedMinis(orm *orm.ORM, id uuid.UUID) ([]*models.CommissionedMini, error)
- func GetGame(orm *orm.ORM, id uuid.UUID) (*models.Game, error)
- func GetGameMini(orm *orm.ORM, id uuid.UUID) (*models.GameMini, error)
- func GetGameMinis(orm *orm.ORM, id uuid.UUID) ([]*models.GameMini, error)
- func GetGames(orm *orm.ORM) ([]*models.Game, error)
- func GetMiniConfig(orm *orm.ORM, mini *models.GameMini, user *models.User) (*models.MiniConfig, error)
- func GetMiniConfigs(orm *orm.ORM, user *models.User) ([]*models.MiniConfig, error)
- func GetMyCommissions(orm *orm.ORM, id uuid.UUID) ([]*models.Commission, error)
- func GetUser(orm *orm.ORM, id uuid.UUID) (*models.User, error)
- func GetUserWithEmail(orm *orm.ORM, email string) (*models.User, error)
- func GetUserWithNickname(orm *orm.ORM, nickName string) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommission ¶
GetCommission returns the commission with the provided ID
func GetCommissionedMini ¶
GetCommissionedMini returns the commissioned mini with the given id
func GetCommissionedMinis ¶
GetCommissionedMinis returns the minis associated with a commission
func GetGameMini ¶
GetGameMini returns the first GameMini record with matching ID
func GetGameMinis ¶
GetGameMinis returns all GameMini records associated with the given Game ID
func GetMiniConfig ¶
func GetMiniConfig(orm *orm.ORM, mini *models.GameMini, user *models.User) (*models.MiniConfig, error)
GetMiniConfig gets a single MiniConfig for the given ID
func GetMiniConfigs ¶
GetMiniConfigs gets MiniConfig records from the DB for the given user
func GetMyCommissions ¶
GetMyCommissions returns commissions where the supplied user is either the artist or the patron
func GetUserWithEmail ¶
GetUserWithEmail returns the DB model for a User for the given email
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.