Documentation
¶
Index ¶
- Variables
- type Completion
- type Config
- type Model
- func (m *Model) Car() car.Model
- func (m *Model) Completions() []Completion
- func (m *Model) FancyListCompletions() map[string]string
- func (m *Model) FancyString() string
- func (m *Model) RegisterCompletion(c Completion)
- func (m *Model) Stage() stage.Model
- func (m *Model) TopThree() []Completion
- func (m *Model) UserCompletions() map[string][]time.Duration
- func (m *Model) Weather() weather.Model
- type Randomiser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RandomEmoji = "🎲" RandomString = "Random" RandomFancyString = RandomEmoji + " " + EmojiDelimiter + RandomString )
View Source
var EmojiDelimiter = string([]byte{0x1f})
Functions ¶
This section is empty.
Types ¶
type Completion ¶
type Completion struct {
// contains filtered or unexported fields
}
func NewCompletion ¶
func NewCompletion(userID string, duration time.Duration) Completion
func (Completion) Duration ¶
func (c Completion) Duration() time.Duration
func (Completion) UserID ¶
func (c Completion) UserID() string
type Config ¶
type Config struct { Game game.Model Location *location.Model Distance *stage.Distance Stage *stage.Model Weather *weather.Model Car *car.Model Class *class.Model Drivetrain *drivetrain.Model }
func (Config) FancyCarString ¶
func (Config) FancyStageString ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewChallenge ¶
func NewRandomChallenge ¶
func NewRandomChallenge(c Config, r Randomiser) Model
func (*Model) Completions ¶
func (m *Model) Completions() []Completion
func (*Model) FancyListCompletions ¶
func (*Model) FancyString ¶
func (*Model) RegisterCompletion ¶
func (m *Model) RegisterCompletion(c Completion)
func (*Model) TopThree ¶ added in v0.2.0
func (m *Model) TopThree() []Completion
func (*Model) UserCompletions ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.