bootstrap

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 32 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
	TokenProvider          core.TokenProvider
	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
	ClientCache            core.Cache[models.OAuthApplication]
	ClientCacheCloser      func() error
	TokenCache             core.Cache[models.AccessToken]
	TokenCacheCloser       func() error
	RateLimitRedisClient   *redis.Client

	// Services
	AuditService core.AuditLogger

	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