data

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminHTML

func AdminHTML(eTag string) ([]byte, string, int)

func Init

func Init(server Server, config *configuration.Config)

func NewServer

func NewServer() *server

func Presentation

func Presentation() types.Presentation

func UserHTML

func UserHTML(eTag string) ([]byte, string, int)

Types

type Message

type Message struct {
	Data   any
	ID     string
	Author string
	Pool   string
	Value  string
	Msg    []byte
	Slide  int
	Admin  bool
	Reload bool
}

type Server

type Server interface {
	Register(userID string, isAdmin bool, currentSlide int64) (ch chan Message, err error)
	Unregister(id string)
	Broadcast(msg Message)
	Send(id string, msg Message)
	Pool(msg Message)
	GetUsers() []string
}

type TemplateData

type TemplateData struct {
	CSS           string
	JS            string
	HTML          string
	Title         string
	Author        string
	Slides        []types.Slide
	Menu          []types.Menu
	PageNext      []string
	PagePrevious  []string
	TerminalCast  []string
	TerminalClose []string
	MenuKey       []string
	OptionsKey    []string
	Port          int
	Admin         bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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