Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCurrency ¶
InitCurrency initiliazes the tables needed for the currency system.
Types ¶
type Currency ¶
Currency is the type for holding currency info about a user.
func CreateCurrency ¶
CreateCurrency creates and inserts a Currency.
type CurrencyTransaction ¶
CurrencyTransaction is the type for keeping track of a transaction to a currency type.
func CreateCurrencyTransaction ¶
func CreateCurrencyTransaction(db *sql.DB, amount int, userID, reason string) (*CurrencyTransaction, error)
CreateCurrencyTransaction will create and insert a new CurrencyTransaction.
Click to show internal directories.
Click to hide internal directories.