Documentation ¶
Index ¶
- func EvaluateResult(pointsScored int, result Result) (string, error)
- func PromptReady() bool
- type Answer
- type Average
- type Daily
- type DailyQuizOverview
- type Details
- type PlayerResult
- type Question
- type Quiz
- type QuizOverview
- type Ranking
- type Result
- type Stats
- type ZeitClient
- func (z *ZeitClient) GetQuiz(url string) (Quiz, error)
- func (z *ZeitClient) GetQuizIds(url string) ([]int, error)
- func (z *ZeitClient) PostPlayerResult(playerResult PlayerResult, url string, cookies string) (Result, error)
- func (z *ZeitClient) PostRanking(ranking Ranking, url, cookies string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptReady ¶
func PromptReady() bool
Types ¶
type Daily ¶
type Daily struct {
Quizzes []DailyQuizOverview `json:"quizzes"`
}
type DailyQuizOverview ¶
type DailyQuizOverview struct {
Id int `json:"id"`
}
type PlayerResult ¶
type PlayerResult struct { Details []Details `json:"details"` PointsScored int `json:"points_scored"` TotalTime int `json:"total_time"` }
func PromptQuiz ¶
func PromptQuiz(quiz Quiz) (PlayerResult, error)
type QuizOverview ¶
type QuizOverview struct {
Quiz Quiz `json:"quiz"`
}
type ZeitClient ¶
type ZeitClient struct {
// contains filtered or unexported fields
}
func NewZeitClient ¶
func NewZeitClient() ZeitClient
func (*ZeitClient) GetQuizIds ¶
func (z *ZeitClient) GetQuizIds(url string) ([]int, error)
func (*ZeitClient) PostPlayerResult ¶
func (z *ZeitClient) PostPlayerResult(playerResult PlayerResult, url string, cookies string) (Result, error)
func (*ZeitClient) PostRanking ¶
func (z *ZeitClient) PostRanking(ranking Ranking, url, cookies string) (string, error)
Click to show internal directories.
Click to hide internal directories.