config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartupReadModelRebuildAuto   = "auto"
	StartupReadModelRebuildAlways = "always"

	SMTPTLSModeStartTLS = "starttls"
	SMTPTLSModeTLS      = "tls"
	SMTPTLSModePlain    = "plain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseURL                 string
	ConnectorSecretKey          []byte
	SMTP                        SMTPConfig
	HTTPAddr                    string
	MetricsAddr                 string
	StaticDir                   string
	AuthCookieSecure            bool
	TrustedProxyCIDRs           []string
	DevSeedAdmin                bool
	SyncDiscoveryEnabled        bool
	SyncInterval                time.Duration
	SyncDiscoveryInterval       time.Duration
	SyncOktaInterval            time.Duration
	SyncEntraInterval           time.Duration
	SyncGoogleWorkspaceInterval time.Duration
	SyncGitHubInterval          time.Duration
	SyncDatadogInterval         time.Duration
	SyncAWSInterval             time.Duration
	SyncFailureBackoffMax       time.Duration
	SyncOktaWorkers             int
	SyncGitHubWorkers           int
	SyncDatadogWorkers          int
	ResyncEnabled               bool
	ResyncMode                  string
	GlobalEvalMode              string
	SyncLockMode                string
	SyncLockTTL                 time.Duration
	SyncLockHeartbeatInterval   time.Duration
	SyncLockHeartbeatTimeout    time.Duration
	SyncLockInstanceID          string
	StartupReadModelRebuildMode string
}

func Load

func Load() (Config, error)

func LoadWithOptions

func LoadWithOptions(opts LoadOptions) (Config, error)

type LoadOptions

type LoadOptions struct {
	RequireDatabaseURL bool
}

type SMTPConfig added in v0.4.12

type SMTPConfig struct {
	Enabled     bool
	Host        string
	Port        int
	Username    string
	Password    string
	FromAddress string
	FromName    string
	TLSMode     string
}

Jump to

Keyboard shortcuts

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