api

package
v0.0.0-...-75edfd4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileChangeCallback

type ProfileChangeCallback func(profileID string)

ProfileChangeCallback is called when the active profile changes

type Server

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

Server represents the HTTP API server

func NewServer

func NewServer(windowMgr *window.Manager, configMgr *config.Manager, displayMgr interface{}, mjpegOut *output.MJPEGOutput, overlayMgr *overlay.Manager) *Server

NewServer creates a new API server

func (*Server) SetOnProfileChange

func (s *Server) SetOnProfileChange(callback ProfileChangeCallback)

SetOnProfileChange sets the callback for profile changes

func (*Server) Start

func (s *Server) Start(port int) error

Start starts the HTTP server

Jump to

Keyboard shortcuts

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