config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

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

NewConfig builds a Config using functional options with sensible defaults.

func WithAppName

func WithAppName(name string) models.ConfigOption

func WithBasePath

func WithBasePath(path string) models.ConfigOption

func WithBaseURL

func WithBaseURL(url string) models.ConfigOption

func WithCSRF

func WithCSRF(csrfConfig models.CSRFConfig) models.ConfigOption

func WithDB

func WithDB(db *gorm.DB) models.ConfigOption

func WithDatabaseHooks

func WithDatabaseHooks(databaseHooksConfig models.DatabaseHooksConfig) models.ConfigOption

func WithEmailPassword

func WithEmailPassword(config models.EmailPasswordConfig) models.ConfigOption

func WithEmailVerification

func WithEmailVerification(config models.EmailVerificationConfig) models.ConfigOption

func WithEndpointHooks

func WithEndpointHooks(endpointHooksConfig models.EndpointHooksConfig) models.ConfigOption

func WithEventBus

func WithEventBus(eventBusConfig models.EventBusConfig) models.ConfigOption

func WithEventHooks

func WithEventHooks(eventHooksConfig models.EventHooksConfig) models.ConfigOption

func WithPlugins

func WithPlugins(config models.PluginsConfig) models.ConfigOption

func WithRateLimit

func WithRateLimit(rateLimitConfig models.RateLimitConfig) models.ConfigOption

func WithSecondaryStorage

func WithSecondaryStorage(storage models.SecondaryStorageConfig) models.ConfigOption

func WithSecret

func WithSecret(secret string) models.ConfigOption

func WithSession

func WithSession(sessionConfig models.SessionConfig) models.ConfigOption

func WithSocialProviders

func WithSocialProviders(socialProvidersConfig models.SocialProvidersConfig) models.ConfigOption

func WithTrustedOrigins

func WithTrustedOrigins(trustedOriginsConfig models.TrustedOriginsConfig) models.ConfigOption

func WithUser

func WithUser(userConfig models.UserConfig) models.ConfigOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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