server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *config.Config, db *bun.DB, features Features) (*http.Server, error)

New constructs the HTTP server and registers the application's routes and middleware.

Types

type Features

type Features struct {
	Publishing    *publishing.Module
	Notifications *notifications.Module
	Media         *media.Module
}

Features are the modules main wires after constructing the worker runtime. Tests pass the zero value to exercise identity routes alone; a nil media module serves media through a client of its own.

Jump to

Keyboard shortcuts

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