Documentation
¶
Index ¶
- func EnabledMailConfigs(db *gorm.DB) ([]notification.MailConfig, error)
- func GetSSLCertificate() (tls.Certificate, error)
- func GetTLSConfig() (*tls.Config, error)
- func InitApplicationListeners(db *gorm.DB, lg *zap.Logger)
- func InitLLMUsageListener(db *gorm.DB, lg *zap.Logger)
- func InitSystemListeners()
- func InitUserSignalListeners(db *gorm.DB, lg *zap.Logger)
- func IsSSLEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnabledMailConfigs ¶
func EnabledMailConfigs(db *gorm.DB) ([]notification.MailConfig, error)
EnabledMailConfigs returns enabled email notification channels ordered by SortOrder.
func GetSSLCertificate ¶
func GetSSLCertificate() (tls.Certificate, error)
GetSSLCertificate gets the loaded SSL certificate
func InitApplicationListeners ¶
InitApplicationListeners registers all process-wide signal listeners (system, user, async pools). Call once after configuration and database are ready.
func InitLLMUsageListener ¶
InitLLMUsageListener 订阅 llm.SignalLLMUsage,将用量写入 llm_usage(按 request_id 去重)。
func InitSystemListeners ¶
func InitSystemListeners()
InitSystemListeners initializes system listeners
func InitUserSignalListeners ¶
InitUserSignalListeners wires user-related signals: synchronous logging and async side effects (e.g. mail).
func IsSSLEnabled ¶
func IsSSLEnabled() bool
IsSSLEnabled checks if SSL is enabled and certificates are loaded
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.