Documentation
¶
Index ¶
- func NewConfig(options ...models.ConfigOption) *models.Config
- func WithAppName(name string) models.ConfigOption
- func WithBasePath(path string) models.ConfigOption
- func WithBaseURL(url string) models.ConfigOption
- func WithCSRF(csrfConfig models.CSRFConfig) models.ConfigOption
- func WithDB(db *gorm.DB) models.ConfigOption
- func WithDatabase(db models.DatabaseConfig) models.ConfigOption
- func WithDatabaseHooks(databaseHooksConfig models.DatabaseHooksConfig) models.ConfigOption
- func WithEmailPassword(config models.EmailPasswordConfig) models.ConfigOption
- func WithEmailVerification(config models.EmailVerificationConfig) models.ConfigOption
- func WithEndpointHooks(endpointHooksConfig models.EndpointHooksConfig) models.ConfigOption
- func WithEventBus(eventBusConfig models.EventBusConfig) models.ConfigOption
- func WithEventHooks(eventHooksConfig models.EventHooksConfig) models.ConfigOption
- func WithPlugins(config models.PluginsConfig) models.ConfigOption
- func WithRateLimit(rateLimitConfig models.RateLimitConfig) models.ConfigOption
- func WithSecondaryStorage(storage models.SecondaryStorageConfig) models.ConfigOption
- func WithSecret(secret string) models.ConfigOption
- func WithSession(sessionConfig models.SessionConfig) models.ConfigOption
- func WithSocialProviders(socialProvidersConfig models.SocialProvidersConfig) models.ConfigOption
- func WithTrustedOrigins(trustedOriginsConfig models.TrustedOriginsConfig) models.ConfigOption
- func WithUser(userConfig models.UserConfig) models.ConfigOption
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 WithDatabase ¶
func WithDatabase(db models.DatabaseConfig) 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.
Click to show internal directories.
Click to hide internal directories.