Documentation ¶
Index ¶
- type BetService
- func (service *BetService) CalculateWhoWins(reference int) (string, error)
- func (service *BetService) EndBet(user string) (string, error)
- func (service *BetService) GetBetInfo(id int) (string, error)
- func (service *BetService) GetBetInfoForMonth(monthIndex int) (string, error)
- func (service *BetService) GetLastEndedBetInfo() (string, error)
- func (service *BetService) IsAuthorizedUser(user string) bool
- func (service *BetService) ListAbsentUsers() (string, error)
- func (service *BetService) ListBets() (string, error)
- func (service *BetService) ParseRequestAndCheckToken(r *http.Request) error
- func (service *BetService) SaveBet(user string, number int, extraInfo string) (string, error)
- func (service *BetService) SaveWinner(betID int, winner int) (string, error)
- func (service *BetService) StartNewBet(user string) (string, error)
- type ByBet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetService ¶
func (*BetService) CalculateWhoWins ¶
func (service *BetService) CalculateWhoWins(reference int) (string, error)
func (*BetService) GetBetInfo ¶
func (service *BetService) GetBetInfo(id int) (string, error)
func (*BetService) GetBetInfoForMonth ¶
func (service *BetService) GetBetInfoForMonth(monthIndex int) (string, error)
func (*BetService) GetLastEndedBetInfo ¶
func (service *BetService) GetLastEndedBetInfo() (string, error)
func (*BetService) IsAuthorizedUser ¶
func (service *BetService) IsAuthorizedUser(user string) bool
func (*BetService) ListAbsentUsers ¶
func (service *BetService) ListAbsentUsers() (string, error)
func (*BetService) ListBets ¶
func (service *BetService) ListBets() (string, error)
func (*BetService) ParseRequestAndCheckToken ¶
func (service *BetService) ParseRequestAndCheckToken(r *http.Request) error
func (*BetService) SaveWinner ¶
func (service *BetService) SaveWinner(betID int, winner int) (string, error)
func (*BetService) StartNewBet ¶
func (service *BetService) StartNewBet(user string) (string, error)
Click to show internal directories.
Click to hide internal directories.