app

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App represents the main application with all its servers and dependencies

func New

func New(conf *util.AppConfig) (*App, error)

New creates a new App instance with the given configuration

func (*App) Initialize

func (a *App) Initialize() error

Initialize sets up the database, runs migrations, and initializes servers

func (*App) Shutdown

func (a *App) Shutdown() error

Shutdown gracefully stops all servers with a 30 second timeout

func (*App) Start

func (a *App) Start() error

Start starts all servers and blocks until a shutdown signal is received

Jump to

Keyboard shortcuts

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