Documentation ¶
Index ¶
- func ConnectDB(d, ll string) (*gorm.DB, error)
- func CreateUser(d *gorm.DB, u string) error
- func DeleteUser(d *gorm.DB, u *models.RegisteredUser) error
- func GetBalance(d *gorm.DB, u uint) (models.SotBalance, error)
- func GetBalanceDifference(d *gorm.DB, u uint) models.SotBalance
- func GetFailedRatCookieTries(d *gorm.DB, u uint) (int64, error)
- func GetLatestHistoryBalance(d *gorm.DB, u uint) models.SotBalanceHistory
- func GetUser(d *gorm.DB, u string) (models.RegisteredUser, error)
- func IncreaseFailedRatCookieTries(d *gorm.DB, u uint) (int64, error)
- func UpdateBalance(d *gorm.DB, u uint, b *api.UserBalance) error
- func UserDelPref(d *gorm.DB, u uint, k string) error
- func UserGetPrefString(d *gorm.DB, u uint, k string) string
- func UserSetPref(d *gorm.DB, u uint, k, v string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func DeleteUser(d *gorm.DB, u *models.RegisteredUser) error
func GetBalance ¶
func GetBalanceDifference ¶
func GetBalanceDifference(d *gorm.DB, u uint) models.SotBalance
func GetLatestHistoryBalance ¶
func GetLatestHistoryBalance(d *gorm.DB, u uint) models.SotBalanceHistory
func UpdateBalance ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.