server

package
v0.0.0-...-97f3efd Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package server wires HTTP routes and the WebSocket signaling endpoint to the lobby manager.

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 holds the shared state behind all HTTP handlers.

func New

func New(cfg *config.Config, mgr *lobby.Manager, log *slog.Logger, version string) *Server

New builds a Server. cfg must already be validated.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the root HTTP handler with all routes mounted.

Jump to

Keyboard shortcuts

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