Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetAgreementView ¶
type CheckUserView ¶
type CompetitionHeadline ¶
func GetAllCompetitionHeadlines ¶
func GetAllCompetitionHeadlines(db *sqlx.DB) []CompetitionHeadline
type CompetitionHeadlineView ¶
type CompetitionHeadlineView struct { ActiveHeadlines []CompetitionHeadline PastHeadlines []CompetitionHeadline Username string }
type CompetitionView ¶
type CompetitionView struct { Competition persistence.Competition OfferedBets []persistence.OfferedBet Username string }
type CounterofferView ¶
type CounterofferView struct { Username string OfferedBet persistence.OfferedBet PreviousBet PreviousBet }
type OfferedBetView ¶
type OfferedBetView struct { OfferedBet persistence.OfferedBet BetCount int BetSum int Username string }
type PlaceBetView ¶
type PlaceBetView struct { OfferedBet persistence.OfferedBet Username string }
type PreviousBet ¶
type ProfileView ¶
type ProfileView struct { Username string UserId int Balance float64 BetsWon int BetsLost int ActiveBets []UserBetView PastBets []UserBetView IncomingBets []UserBetView OutgoingBets []UserBetView }
type UserBetView ¶
type UserBetView struct { BetId int BetStatus int BetName string UserAmount int UserOutcome string UserOutcomeOdds int UserAgreed bool UserName string UserWon bool UserPointSpread float32 OtherAmount int OtherOutcome string OtherOutcomeOdds int OtherAgreed bool OtherName string OtherPointSpread float32 TotalAmount int EventDate time.Time }
type UserView ¶
type UserView struct { Username string UserId int Balance float64 BetsWon int BetsLost int ActiveBets []UserBetView PastBets []UserBetView }
Click to show internal directories.
Click to hide internal directories.