web

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWebSocket

func HandleWebSocket(hub *WebHub) http.HandlerFunc

Types

type WebClient

type WebClient struct {
	// contains filtered or unexported fields
}

WebSocket clients

type WebHub

type WebHub struct {
	// contains filtered or unexported fields
}

func NewWebHub

func NewWebHub(verbose bool) *WebHub

func StartServer

func StartServer(port int, styleCSS, appJS []byte, indexHandler http.HandlerFunc, db *database.SQLiteDB, config *models.Config) *WebHub

func (*WebHub) Broadcast

func (h *WebHub) Broadcast(event models.EventOutput)

func (*WebHub) Run

func (h *WebHub) Run()

Jump to

Keyboard shortcuts

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