package
0.0.0-20201209153400-04a4749666fa
Repository: https://github.com/excel-mec/excelplay-backend-dalalbull.git
Documentation: pkg.go.dev

# Functions

Migrate is the master function used to run migrations path should be a string giving the path to the directory containing the SQL files.
NewDB setups and returns a new database connection instance.

# Structs

CompanyInfo struct holds all the information about stock of a company.
CurrentPriceInfo holds information to be sent back when user selects a company.
DashboardData struct is used to hold all the data sent to be displayed on a user's dashboard.
DB wraps sqlx.DB to add custom query methods.
DBParams is used to construct the connection string.
History holds data about past transactions of a user.
HistoryArr holds an array of History instances.
PendingData holds information about pending stocks of a user.
Portfolio struct is used to hold details of a user's portfolio.
SellData holds information about stocks a user has.
SellDataWrapper is a wrapper around SellData providing additional information.
Stock struct holds information about a particular stock.
StockChange struct holds change information about a particular stock.
StockHistory holds information about the history of a specific company's stock.
StockValue struct holds information about trade value of a particular stock.
StockVolume struct holds information about trade quantity of a particular stock.
TickerData struct is used to hold details of a stock to be shown in a ticker.
TransactionBuy holds information about a buy transaction.
TransactionShortSell holds information about a short sell transaction.
User holds the details of a particular user.