http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package http provides the Fiber-based HTTP server.

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 wraps a fiber.App with lifecycle helpers.

func New

func New(cfg *config.Config, logger *slog.Logger) *Server

New creates and configures the Fiber server.

func (*Server) APIRouter

func (s *Server) APIRouter() fiber.Router

func (*Server) App

func (s *Server) App() *fiber.App

App returns the underlying fiber.App for registering additional routes.

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes(
	rt *realtime.Node,
	v *view.View,
	osuSongHandler *osuapi.OsuSongHandler,
	osuTrackStreamHandler *osuapi.OsuTrackStreamHandler,
	osuGetBackgroundHandler *osuapi.OsuGetBackgroundHandler,
	osuQueueAdjacentHandler *osuapi.OsuQueueAdjacentHandler,
	osuSongsSearchHandler *osuapi.OsuSongsSearchHandler,
)

func (*Server) Start

func (s *Server) Start() error

Start begins listening. Blocks until the server is shut down.

func (*Server) Stop

func (s *Server) Stop() error

Stop gracefully shuts down the server.

Directories

Path Synopsis
handler
Package view provides Vite backend integration for fiber.
Package view provides Vite backend integration for fiber.

Jump to

Keyboard shortcuts

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