admin

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalStateHandler

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

GlobalStateHandler handles global state management

func NewGlobalStateHandler

func NewGlobalStateHandler(jsEngine *engine.Engine) *GlobalStateHandler

NewGlobalStateHandler creates a new global state handler

func (*GlobalStateHandler) HandleGlobalState

func (gsh *GlobalStateHandler) HandleGlobalState(w http.ResponseWriter, r *http.Request)

HandleGlobalState serves the globalState interface and API

type LogsHandler

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

LogsHandler handles log-related admin endpoints

func NewLogsHandler

func NewLogsHandler(logger *engine.RequestLogger, repos repository.RepositoryManager) *LogsHandler

NewLogsHandler creates a new logs handler

func (*LogsHandler) HandleLogsAPI

func (lh *LogsHandler) HandleLogsAPI(w http.ResponseWriter, r *http.Request)

HandleLogsAPI handles API endpoints for log data

type SSEHandler

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

SSEHandler handles Server-Sent Events for real-time updates

func NewSSEHandler

func NewSSEHandler(logger *engine.RequestLogger, repos repository.RepositoryManager) *SSEHandler

NewSSEHandler creates a new SSE handler

func (*SSEHandler) BroadcastSSE

func (sh *SSEHandler) BroadcastSSE(message string)

BroadcastSSE sends a message to all connected SSE clients

func (*SSEHandler) ServeSSE

func (sh *SSEHandler) ServeSSE(w http.ResponseWriter, r *http.Request)

ServeSSE handles Server-Sent Events for real-time updates

Jump to

Keyboard shortcuts

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