Documentation ¶
Index ¶
- Constants
- Variables
- func GetTopUsers(db *sql.DB)
- func SessionCountMiddleware() wish.Middleware
- func TopUsers() []string
- type State
- func (m State) CostList() string
- func (m State) CursorColumn() int
- func (m State) CursorRow() int
- func (m State) GameTick() State
- func (m State) IncrementTab(up bool) State
- func (m State) Init() tea.Cmd
- func (m State) RecalculateCursorDisplay() State
- func (m State) SetCursor(col, row int) State
- func (m State) SetCursorColumn(col int) State
- func (m State) SetCursorRow(row int) State
- func (m State) SetupData() State
- func (m State) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m State) UpgradeList() string
- func (m State) View() string
- func (m State) ViewerCount() string
Constants ¶
View Source
const ( CURSOR_COLUMN = 0 CURSOR_ROW = 1 TAB_GAME = 0 TAB_SETTINGS = 1 TAB_LEADERBOARD = 2 TAB_ABOUT = 3 GAME_COLUMN_ITEMS = 0 GAME_COLUMN_UPGRADES = 1 )
Variables ¶
View Source
var SessionCount = 0
View Source
var TopUsersList []model.User
Functions ¶
func GetTopUsers ¶
func SessionCountMiddleware ¶
func SessionCountMiddleware() wish.Middleware
Types ¶
type State ¶
type State struct { Term string Width int Height int PerSecond uint64 Cursor [2]int SelectedTab int SelectedItem int User model.User Db *sql.DB ChangelogViewport viewport.Model // contains filtered or unexported fields }
func (State) CursorColumn ¶
func (State) IncrementTab ¶
func (State) RecalculateCursorDisplay ¶
func (State) SetCursorColumn ¶
func (State) SetCursorRow ¶
func (State) UpgradeList ¶
func (State) ViewerCount ¶
Click to show internal directories.
Click to hide internal directories.