Documentation
¶
Index ¶
Constants ¶
View Source
const HelpText string = "" /* 147-byte string literal not displayed */
Help Text!!!
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gamer ¶
type Gamer struct {
ChatID int `json:"chat_id"`
Questions []Question `json:"questions"`
CurrentQuestion int `json:"current_question"`
RightAnswers int `json:"right_answers"`
WrongAnswers int `json:"wrong_answers"`
Username string `json:"username"`
}
Gamer is object to store in appengine datastore
func (*Gamer) GetAccuracy ¶
GetAccuracy - return persentage of right answers
func (*Gamer) GetCurrentQuestion ¶
GetCurrentQuestion is helper method to get current question
func (*Gamer) GetKeyboard ¶
func (gamer *Gamer) GetKeyboard() *telegram.ReplyKeyboardMarkup
GetKeyboard helper to generate keyboard markup
func (*Gamer) NextQuestion ¶
NextQuestion return next question
type GamerData ¶
type GamerData struct {
GamerBlob string
RightAnswers int64
WrongAnswers int64
Gamer *Gamer `datastore:"-"`
}
GamerData is wrapper for appengine data store
Click to show internal directories.
Click to hide internal directories.