Documentation ¶
Index ¶
- Variables
- func AcceptRedeemRequest(id int) bool
- func Add(user User) bool
- func AddAwardLog(from string, to string, amount float64) bool
- func AddCoins(rollno string, amt float64) bool
- func AddRedeemRequest(roll string, item string) bool
- func AddTransferLog(from string, to string, amount float64, tax float64) bool
- func Clean() bool
- func CoinCount(rollno string) float64
- func FindPass(rollno string) (string, bool)
- func GetRedeemRequest(id int) (roll string, item string, status int)
- func IsAdmin(rollno string) bool
- func MakeAdmin(rollno string) bool
- func RejectPendingRedeemRequests(roll string) bool
- func RejectRedeemRequest(id int) bool
- func RemoveAdmin(rollno string) bool
- func TransferCoins(from string, to string, amt float64) bool
- func UserExists(rollno string) bool
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func AcceptRedeemRequest ¶
func AddRedeemRequest ¶
func GetRedeemRequest ¶
get rollno and item from RedeemRequests table
func RejectRedeemRequest ¶
func RemoveAdmin ¶
func UserExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.