Documentation
¶
Index ¶
- func AddCryptoToWallet(UUID string, symbol string, amount float64)
- func AddMoneyToWallet(UUID string, amount float64)
- func AddRefreshToken(tkn *models.RefreshTokenModel)
- func AddTrade(from string, to string, walletUUID string, price float64, amount float64)
- func CheckIfCurrencyExists(name string) bool
- func CheckUserOwnsRefreshToken(user string, token string) bool
- func Connect() (*sql.DB, error)
- func GetAllCurrencys() []models.CurrencyModel
- func GetAllTradesForUser(UUID string) []models.TradesModel
- func GetAmountOfCryptoByUUID(UUID string, symbol string) float64
- func GetCurrency(name string) models.CurrencyModel
- func GetCurrencyArray(UUID string) []models.CurrencyArrayModel
- func GetCurrencyData(name string, timePeriod int) []models.CurrencyProgressModel
- func GetRefreshToken(token string) (bool, models.RefreshTokenModel)
- func GetUserByUsername(username string) models.UserModel
- func GetWalletByUUID(UUID string) models.WalletModel
- func InitTables()
- func InsertCurrency(coinid string, rank int, symbol string, name string, supply float64, ...)
- func InsertCurrencyChange(currency string, priceUSD float64, timestamp int)
- func Login(username string, password string) bool
- func LoginWithToken(username string, token string) bool
- func RegisterAccount(username string, password string) bool
- func RemoveCryptoFromWallet(UUID string, symbol string, amount float64)
- func RemoveMoneyFromWallet(UUID string, value float64)
- func RevokeSession(user string, token string)
- func SetUserAuthToken(username string, token string)
- func UpdateCurrency(rank int, supply float64, maxSupply float64, marketCapUSD float64, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCryptoToWallet ¶
func AddMoneyToWallet ¶
func AddRefreshToken ¶
func AddRefreshToken(tkn *models.RefreshTokenModel)
func CheckIfCurrencyExists ¶
func GetAllCurrencys ¶
func GetAllCurrencys() []models.CurrencyModel
func GetAllTradesForUser ¶
func GetAllTradesForUser(UUID string) []models.TradesModel
func GetAmountOfCryptoByUUID ¶
func GetCurrency ¶
func GetCurrency(name string) models.CurrencyModel
func GetCurrencyArray ¶
func GetCurrencyArray(UUID string) []models.CurrencyArrayModel
func GetCurrencyData ¶
func GetCurrencyData(name string, timePeriod int) []models.CurrencyProgressModel
---------------------------------
DEPRECATED This action is deprecated It can be enabled via config
---------------------------------
func GetRefreshToken ¶
func GetRefreshToken(token string) (bool, models.RefreshTokenModel)
func GetUserByUsername ¶
func GetWalletByUUID ¶
func GetWalletByUUID(UUID string) models.WalletModel
func InitTables ¶
func InitTables()
func InsertCurrency ¶
func InsertCurrencyChange ¶
-----------------------------------------
DEPRECATED This function is handled anyway. It is deprecated since v0.0.1-dev
-----------------------------------------
func LoginWithToken ¶
func RegisterAccount ¶
func RemoveCryptoFromWallet ¶
func RemoveMoneyFromWallet ¶
func RevokeSession ¶
func SetUserAuthToken ¶
Types ¶
This section is empty.
Source Files
¶
- AddCryptoToWallet.go
- AddMoneyToWallet.go
- AddRefreshToken.go
- AddTrade.go
- CheckIfCurrencyExists.go
- CheckUserOwnsRefreshToken.go
- GetAllCurrencys.go
- GetAllTradesForUser.go
- GetAmountOfCryptoByUUID.go
- GetCurrency.go
- GetCurrencyData.go
- GetCurrenyArray.go
- GetRefreshToken.go
- GetUserByUsername.go
- GetWalletByUUID.go
- InitTables.go
- InsertCurrency.go
- InsertCurrencyChange.go
- Login.go
- LoginWithToken.go
- RegisterAccount.go
- RemoveCryptoFromWallet.go
- RemoveMoneyFromWallet.go
- RevokeSession.go
- SetUserAuthToken.go
- UpdateCurrency.go
- connection.go
Click to show internal directories.
Click to hide internal directories.