Documentation ¶
Index ¶
- Variables
- func SSDP(ctx context.Context, cb func(*Device) error) error
- type App
- type Device
- func (rd *Device) ActiveApp(ctx context.Context) (App, error)
- func (rd *Device) FindApp(name string) *App
- func (rd *Device) Home(ctx context.Context) error
- func (rd *Device) Launch(ctx context.Context, id string) error
- func (rd *Device) LaunchByName(ctx context.Context, name string) error
- func (rd *Device) QueryApps(ctx context.Context) ([]App, error)
- func (rd *Device) SetApps(apps []App)
- type ErrApplicationNotFound
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotRoku = errors.New("SSPD ST header is not roku:ecp")
)
Functions ¶
Types ¶
type Device ¶
type Device struct { Location *url.URL USN string DeviceGroup string BroadcastInterval time.Duration Apps []App AppNames []string }
func (*Device) LaunchByName ¶
type ErrApplicationNotFound ¶
type ErrApplicationNotFound string
func (ErrApplicationNotFound) Error ¶
func (e ErrApplicationNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.