pages

package
v0.0.0-...-732ec5d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 14 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 PageInfoAndID

type PageInfoAndID struct {
	PageInfo
	ID string
}

type PagesModule

type PagesModule interface {
	modules.NativeModule
	ResolvePage(pageID string) (PageInfo, bool)
	PublishedPages() []PageInfoAndID
	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