chore: use interfaces for all other services

This commit is contained in:
Christoph Haas
2025-03-23 23:09:47 +01:00
parent 02ed7b19df
commit 7d0da4e7ad
40 changed files with 1337 additions and 406 deletions

View File

@@ -1,5 +1,7 @@
package config
// MailEncryption is the type of the SMTP encryption.
// Supported: none, tls, starttls
type MailEncryption string
const (
@@ -8,6 +10,8 @@ const (
MailEncryptionStartTLS MailEncryption = "starttls"
)
// MailAuthType is the type of the SMTP authentication.
// Supported: plain, login, crammd5
type MailAuthType string
const (
@@ -16,6 +20,7 @@ const (
MailAuthCramMD5 MailAuthType = "crammd5"
)
// MailConfig contains the configuration for the mail server which is used to send emails.
type MailConfig struct {
// Host is the hostname or IP of the SMTP server
Host string `yaml:"host"`