Documentation ¶
Index ¶
- Variables
- func AddUser(user models.User) bool
- func CheckPasswords(hashedPwd string, pwd string) bool
- func DeductTax(user models.TransferPayload) int64
- func HashPwd(password string) string
- func InitialiseDB()
- func ReturnBalance(rollno string) int64
- func RewardMoney(user models.RewardPayload) bool
- func TransferCoins(user models.TransferPayload) bool
- func UserExists(user models.User) bool
- func UserValid(user models.LoginRequest) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var MyDB *sql.DB
View Source
var TransactionHistoryDB *sql.DB
View Source
var WalletDB *sql.DB
Functions ¶
func CheckPasswords ¶
func DeductTax ¶
func DeductTax(user models.TransferPayload) int64
func InitialiseDB ¶
func InitialiseDB()
func ReturnBalance ¶
func RewardMoney ¶
func RewardMoney(user models.RewardPayload) bool
func TransferCoins ¶
func TransferCoins(user models.TransferPayload) bool
func UserExists ¶
func UserValid ¶
func UserValid(user models.LoginRequest) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.