data

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(server Server)

func NewServer

func NewServer() *server

func Presentation

func Presentation() types.Presentation

func SetPresentation

func SetPresentation(p types.Presentation)

Types

type Message

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

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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