handlers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentSlide = int64(-10)

Functions

func API

func API() http.Handler

func APILogin

func APILogin(userPwd, adminPwd string) http.Handler

func AccessControlAllow

func AccessControlAllow(next http.Handler) http.Handler

func Asciinema

func Asciinema() http.Handler

func CastWS

func CastWS(server data.Server, adminPwd string) http.Handler

func Exec

func Exec() http.Handler

func Homepage

func Homepage(port int, userPwd, adminPwd string) http.Handler

func Login

func Login(loginPage []byte) http.Handler

func WS

func WS(server data.Server, adminPwd string) http.Handler

Types

type RequestPayload

type RequestPayload struct {
	Slide int      `json:"slide"`
	Code  []string `json:"code"`
}

type TemplateData

type TemplateData struct {
	Slides        []types.Slide
	CSS           string
	Menu          []types.Menu
	Title         string
	Port          int
	PageNext      []string
	PagePrevious  []string
	TerminalCast  []string
	TerminalClose []string
	MenuKey       []string
}

Jump to

Keyboard shortcuts

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