app

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBodyLimit is the maximum request body size (50MB)
	DefaultBodyLimit = 50 * 1024 * 1024
	// DefaultHTTPSPort is the default HTTPS port
	DefaultHTTPSPort = ":443"
)

Variables

View Source
var (
	DevMode bool
)

Functions

func Init

func Init() error

Init initializes the directory structure and database

func InstallCheck

func InstallCheck(c fiber.Ctx) error

InstallCheck checks the installation status and redirects to the installation page if necessary.

func Migrate

func Migrate() error

Migrate performs database migrations

func NewApp

func NewApp(httpAddr, httpsAddr string, noSite, appDev bool) error

NewApp initializes and starts the web application

func StartServer

func StartServer(ctx context.Context, addr string, a *fiber.App) error

StartServer starts the server and handles graceful shutdown.

Types

This section is empty.

Directories

Path Synopsis
handlers

Jump to

Keyboard shortcuts

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