routes

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KioskVersion  string
	ExampleConfig []byte
)

Functions

func Clock

func Clock(c echo.Context) error

Clock clock endpoint

func Home

func Home(c echo.Context) error

Home home endpoint

func NewImage

func NewImage(c echo.Context) error

NewImage new image endpoint

Types

type ClockData

type ClockData struct {
	ClockTime string
	ClockDate string
}

type ErrorData

type ErrorData struct {
	Title   string
	Message string
}

type PageData

type PageData struct {
	// KioskVersion the current build version of Kiosk
	KioskVersion string
	// ImageData image as base64 data
	ImageData string
	// ImageData blurred image as base64 data
	ImageBlurData string
	// Date image date
	ImageDate string
	// instance config
	config.Config
}

Jump to

Keyboard shortcuts

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