bootstrap

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSchemaVersion

func CheckSchemaVersion(store *store.Store, required int) error

func EnsureOrganizationMode added in v0.1.24

func EnsureOrganizationMode(store *store.Store, mode string) error

func NewCache added in v0.1.21

func NewCache(cfg *config.Config) (cache.Cache, error)

func NewHTTPServer added in v0.1.21

func NewHTTPServer(app *App, version string) (*httpserver.Server, error)

func NewLogger added in v0.1.21

func NewLogger(cfg *config.Config) (*slog.Logger, error)

func NewStore added in v0.1.21

func NewStore(cfg *config.Config) (*store.Store, error)

Types

type App added in v0.1.21

type App struct {
	Config        *config.Service
	Logger        *slog.Logger
	Observability *observability.Service
	Store         *store.Store
	Cache         cache.Cache
	Services      Services
}

func NewApp added in v0.1.21

func NewApp(version string) (*App, error)

func (*App) Close added in v0.1.21

func (a *App) Close() error

func (*App) StartBackgroundWorkers added in v0.1.21

func (a *App) StartBackgroundWorkers(ctx context.Context)

type Services added in v0.1.21

type Services struct {
	Admin          *admin.Service
	Auth           *auth.Service
	Passkeys       *passkey.Service
	Session        *session.Service
	Organizations  *organization.Service
	Challenge      *challenge.Service
	Verification   *challenge.VerificationCodeService
	EmailTemplates *email.TemplateService
	EmailWorker    *challenge.Worker
	WebhookWorker  *webhook.Worker
	OAuthProviders oauth.OAuthProviders
}

func NewServices added in v0.1.21

func NewServices(app *App) (Services, error)

Jump to

Keyboard shortcuts

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