Documentation ¶
Index ¶
- Constants
- func GetMD5Hash(text string) string
- func SetUniversalHandlers(core *core.Kanna)
- func ShowAnimePage(core *core.Kanna, anime *tohru.Anime)
- func ShowHelpPage(core *core.Kanna)
- func ShowMainPage(core *core.Kanna)
- func ShowModal(core *core.Kanna, id string, modal *tview.Modal)
- func ShowSearchPage(core *core.Kanna)
- type AnimePage
- type EpisodeSelection
- type HelpPage
- type MainPage
- type SearchPage
- type SearchParams
Constants ¶
View Source
const (
EpisodesOffsetRange = 500
)
Variables ¶
This section is empty.
Functions ¶
func GetMD5Hash ¶
func SetUniversalHandlers ¶
SetUniversalHandlers : Set universal inputs for the app.
func ShowAnimePage ¶
ShowAnimePage : Make the app show the anime page.
func ShowHelpPage ¶
ShowHelpPage : Make the app show the help page.
func ShowMainPage ¶
ShowMainPage : Make the app show the main page.
func ShowSearchPage ¶
ShowSearchPage : Make the app show the search page.
Types ¶
type AnimePage ¶
type AnimePage struct { Anime *tohru.AnimeDetails Grid *tview.Grid Info *tview.TextView Table *tview.Table Core *core.Kanna // contains filtered or unexported fields }
AnimePage : This struct contains the required primitives for the anime page.
type EpisodeSelection ¶
type EpisodeSelection struct {
// contains filtered or unexported fields
}
type MainPage ¶
type MainPage struct { Grid *tview.Grid Table *tview.Table CurrentOffset int Core *core.Kanna // contains filtered or unexported fields }
MainPage : This struct contains the grid and the entry table.
type SearchPage ¶
SearchPage : This struct contains the search bar and the table of results for the search. This struct reuses the MainPage struct, specifically for the guest table.
type SearchParams ¶
type SearchParams struct {
// contains filtered or unexported fields
}
SearchParams : Convenience struct to hold parameters for setting up a search table.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.