ui

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

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

View Source
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.

View Source
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.

View Source
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.

View Source
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.

func UI

func UI() *sdui.Module

UI is the module's SDUI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL