infoscreenapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateShowEndpoint

func CreateShowEndpoint(router *app.Router)

func DeleteShowEndpoint

func DeleteShowEndpoint(router *app.Router)

func EnabledEndpoint

func EnabledEndpoint(router *app.Router)

func GetLayoutEndpoint

func GetLayoutEndpoint(router *app.Router)

func GetShowEndpoint

func GetShowEndpoint(router *app.Router)

func ListLayoutNamesEndpoint

func ListLayoutNamesEndpoint(router *app.Router)

func ListShowsEndpoint

func ListShowsEndpoint(router *app.Router)

func PlayShowEndpoint

func PlayShowEndpoint(router *app.Router)

trunk-ignore(golangci-lint/cyclop)

func RenderLayoutPreviewEndpoint

func RenderLayoutPreviewEndpoint(router *app.Router)

trunk-ignore(golangci-lint/cyclop)

func Setup

func Setup(a *app.App, grp *echo.Group)

Setup defines all routes for the infoscreen API.

func SetupPlayer

func SetupPlayer(a *app.App, grp *echo.Group)

func UploadFileEndpoint

func UploadFileEndpoint(router *app.Router)

trunk-ignore(golangci-lint/cyclop)

Types

type PlayContext

type PlayContext struct {
	ShowName  string
	Embedded  bool
	Theme     string
	Slides    []PlaySlide
	AutoSlide bool
	Preview   bool
}

type PlaySlide

type PlaySlide struct {
	Duration    float64
	Content     template.HTML
	AutoAnimate string
	Background  string
}

Jump to

Keyboard shortcuts

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