Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Homeserver url
Homeserver string
// Login is a localpart if logging in with password (postmoogle) OR full MXID if logging in with shared secret (@postmoogle:example.com)
Login string
// Password for login/password auth only
Password string
SharedSecret string
// Domains for SMTP
Domains []string
// Port for SMTP
Port string
// Proxies is list of trusted SMTP proxies
Proxies []string
// RoomID of the admin room
LogLevel string
// DataSecret is account data secret key (password) to encrypt all account data values
DataSecret string
// NoEncryption disabled encryption support
NoEncryption bool
// Prefix for commands
Prefix string
// MaxSize of an email (including attachments)
MaxSize int
// StatusMsg of the bot
StatusMsg string
// Mailboxes config
Mailboxes Mailboxes
// Admins holds list of admin users (wildcards supported), e.g.: @*:example.com, @bot.*:example.com, @admin:*. Empty = no admins
Admins []string
// DB config
DB DB
// PSD config
PSD PSD
// TLS config
TLS TLS
// Monitoring config
Monitoring Monitoring
Relay Relay
}
Config of Postmoogle
type DB ¶
type DB struct {
// DSN is a database connection string
DSN string
// Dialect of database, one of sqlite3, postgres
Dialect string
}
DB config
type Monitoring ¶
type Monitoring struct {
SentryDSN string
SentrySampleRate int
HealthchecksURL string
HealthchecksUUID string
HealthchecksDuration time.Duration
}
Monitoring config
Click to show internal directories.
Click to hide internal directories.