bootstrap

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, templatesFS embed.FS) error

Run initializes and starts the application

Types

type Application

type Application struct {
	Config *config.Config

	// Core infrastructure
	DB                     *store.Store
	MetricsRecorder        core.Recorder
	MetricsCache           core.Cache[int64]
	MetricsCacheCloser     func() error
	UserCache              core.Cache[models.User]
	UserCacheCloser        func() error
	ClientCountCache       core.Cache[int64]
	ClientCountCacheCloser func() error
	RateLimitRedisClient   *redis.Client

	// Services
	AuditService *services.AuditService

	Router      *gin.Engine
	Server      *http.Server
	TemplatesFS embed.FS
	// contains filtered or unexported fields
}

Application holds all initialized components

Jump to

Keyboard shortcuts

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