workspacehttp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package workspacehttp provides the HTTP/WebSocket server for multi-workspace management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the multi-workspace HTTP/WebSocket server. This is the new simplified architecture that manages sessions in-process.

func NewServer

func NewServer(
	host string,
	port int,
	sessionManager *session.Manager,
	configManager *workspace.ConfigManager,
	dispatcher *handler.Dispatcher,
	hub ports.EventHub,
	logger *slog.Logger,
) *Server

NewServer creates a new multi-workspace HTTP server.

func (*Server) SetOriginChecker

func (s *Server) SetOriginChecker(checker *security.OriginChecker)

SetOriginChecker sets the origin checker used by websocket/CORS flows.

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server.

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the HTTP server.

Jump to

Keyboard shortcuts

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