web

package
v0.0.0-...-f7b00e8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(addr string)

StartServer initializes and starts the web server.

Types

type UIMessage

type UIMessage struct {
	Type    string      `json:"type"`
	Payload interface{} `json:"payload"`
}

type WebSocketHandler

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

WebSocketHandler handles WebSocket connections.

func NewWebSocketHandler

func NewWebSocketHandler(agent interfaces.LlmAgent, sess *sessions.Session) *WebSocketHandler

NewWebSocketHandler creates a new WebSocketHandler.

func (*WebSocketHandler) ServeWS

func (h *WebSocketHandler) ServeWS(w http.ResponseWriter, r *http.Request)

ServeWS handles WebSocket requests from the peer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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