Documentation
¶
Overview ¶
Package ui is WittyTuner's server-driven UI (module API 5; WittyMediaServer docs/SDUI-MODULES.md): the tuner pages every app draws, the Apple TV and Android TV apps among them, which have no web view for the module's web part. They're for administrators: the tuners and guide sources, one tuner's channels, and the first-run step. Their sources are answered by WittyTuner's service (package api), and every row that does something runs one of WittyTuner's own commands, on its own routes, which check again who is asking. Typing a playlist's address or a password is a browser's (Settings, Live TV & tuners).
The guide, live TV and recordings stay the server's own pages.
Index ¶
Constants ¶
const ( // PageTuners is the tuners, what's on this network to add, and the guide sources. PageTuners = Module // PageTuner is one tuner (?item=<its id>&name=<its name>): what can be done to it, and its channels. PageTuner = Module + "-tuner" // PageSetup is the first-run step (integration.json setup "tv"). PageSetup = Module + "-setup" )
Pages.
const ( SourceTuners = Module + ".tuners" // every tuner, opening its page SourceFound = Module + ".found" // tuners on this network, each with Add SourceGuides = Module + ".guides" // guide sources, each with Read now and Remove SourceTuner = Module + ".tuner" // one tuner: how it is, and what can be done to it SourceChannels = Module + ".channels" // one tuner's channels, each a switch for the guide SourceSetup = Module + ".setup" // finishing the first-run step, or putting it off )
Sources, answered by the service.
const ( CommandAdd = Module + ".tuner.add" CommandRefresh = Module + ".tuner.refresh" CommandScan = Module + ".tuner.scan" CommandCheck = Module + ".tuner.check" CommandCheckStop = Module + ".tuner.checkStop" CommandOn = Module + ".tuner.on" CommandOff = Module + ".tuner.off" CommandRemove = Module + ".tuner.remove" CommandChannelShow = Module + ".channel.show" CommandChannelHide = Module + ".channel.hide" CommandGuideRefresh = Module + ".guide.refresh" CommandGuideRemove = Module + ".guide.remove" CommandSetupDone = Module + ".setup.done" CommandSetupLater = Module + ".setup.later" )
Commands: WittyTuner's own routes, for administrators.
const Module = "wittytuner"
Module is WittyTuner's ID.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands() []core.CommandSpec
Commands are WittyTuner's own commands, as sdui.json declares them. Every one is an administrator's route.
Types ¶
This section is empty.