Documentation ¶
Overview ¶
This file will contain all the choices a player can have while interacting with tui
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.
Index ¶
- Constants
- func GetMagnetFromListModel() string
- func GetPlayerChoice() string
- func RenderListModelView(title string, results scraper.Results) (err error)
- func RenderSetupModelView() error
- func SetMagnetChoice(magnet string)
- func SetPlayerChoice(choice string)
- func StartStream() error
- type ListModel
- type SetupModel
Constants ¶
View Source
const (
MOVIE_RESULTS_TITLE = "Movie Results"
)
Variables ¶
This section is empty.
Functions ¶
func GetMagnetFromListModel ¶
func GetMagnetFromListModel() string
func GetPlayerChoice ¶
func GetPlayerChoice() string
func RenderListModelView ¶
This method is used to render ListModel View once query results are aquired by the scrper. Also need to pass Results struct here for rendering.
func SetMagnetChoice ¶
func SetMagnetChoice(magnet string)
func SetPlayerChoice ¶
func SetPlayerChoice(choice string)
func StartStream ¶
func StartStream() error
Types ¶
type ListModel ¶
type ListModel struct {
// contains filtered or unexported fields
}
func NewListModel ¶
title argument will be used later once tv-series is implemented.
type SetupModel ¶
func (SetupModel) Init ¶
func (m SetupModel) Init() tea.Cmd
func (SetupModel) View ¶
func (m SetupModel) View() string
The main view, which just calls the appropriate sub-view
Click to show internal directories.
Click to hide internal directories.