Documentation ¶
Index ¶
Constants ¶
View Source
const ( GameStatusNotStarted = MarathonGameStatus(iota) GameStatusRunning GameStatusFinished )
View Source
const CurrentMarathon = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Marathon ¶
type Marathon struct { ID int `json:"id" storm:"id,increment"` Name *string `json:"name"` Games []*MarathonGame `json:"games"` }
func (*Marathon) CurrentGame ¶
func (m *Marathon) CurrentGame() *MarathonGame
func (*Marathon) ResetMarathon ¶
type MarathonGame ¶
type MarathonGameStatus ¶
type MarathonGameStatus int
type MarathonModule ¶
type MarathonModule struct {
// contains filtered or unexported fields
}
func (*MarathonModule) Start ¶
func (m *MarathonModule) Start() error
func (*MarathonModule) Stop ¶
func (m *MarathonModule) Stop() error
type MarathonService ¶
type MarathonService struct {
// contains filtered or unexported fields
}
func NewMarathonService ¶
func NewMarathonService(module *MarathonModule) *MarathonService
Click to show internal directories.
Click to hide internal directories.