pages

package
v0.0.0-...-e9c30ff Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "jungletv:pages"

ModuleName is the name by which this module can be require()d in a script

Variables

This section is empty.

Functions

This section is empty.

Types

type PageInfo

type PageInfo struct {
	Title  string
	File   string
	Header http.Header
}

type PagesModule

type PagesModule interface {
	modules.NativeModule
	ResolvePage(pageID string) (PageInfo, bool)
	OnPagePublished() event.Event[string]
	OnPageUnpublished() event.Event[string]
}

PagesModule manages page associations for an application

func New

func New(appContext modules.ApplicationContext) PagesModule

New returns a new pages module

Jump to

Keyboard shortcuts

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