config

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(options ...ConfigOption) *models.Config

NewConfig builds a Config using functional options with sensible defaults. Panics if event bus configuration is invalid or if required secrets are missing in production.

Types

type ConfigOption

type ConfigOption func(*models.Config)

func WithAppName

func WithAppName(name string) ConfigOption

func WithBasePath

func WithBasePath(path string) ConfigOption

func WithBaseURL

func WithBaseURL(url string) ConfigOption

func WithCoreDatabaseHooks

func WithCoreDatabaseHooks(config *models.CoreDatabaseHooksConfig) ConfigOption

func WithDatabase

func WithDatabase(config models.DatabaseConfig) ConfigOption

func WithEventBus

func WithEventBus(config models.EventBusConfig) ConfigOption

func WithLogger

func WithLogger(config models.LoggerConfig) ConfigOption

func WithPlugins

func WithPlugins(config models.PluginsConfig) ConfigOption

func WithRouteMappings

func WithRouteMappings(config []models.RouteMapping) ConfigOption

func WithSecret

func WithSecret(secret string) ConfigOption

func WithSecurity

func WithSecurity(config models.SecurityConfig) ConfigOption

func WithSession

func WithSession(config models.SessionConfig) ConfigOption

func WithVerification added in v2.10.0

func WithVerification(config models.VerificationConfig) ConfigOption

Jump to

Keyboard shortcuts

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