mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-20 11:41:42 +00:00
0e84fac099
- Simplify ws package.
30 lines
1.5 KiB
Go
30 lines
1.5 KiB
Go
package models
|
|
|
|
type General struct {
|
|
SiteName string `json:"app.site_name"`
|
|
Lang string `json:"app.lang"`
|
|
MaxFileUploadSize int `json:"app.max_file_upload_size"`
|
|
FaviconURL string `json:"app.favicon_url"`
|
|
RootURL string `json:"app.root_url"`
|
|
AllowedFileUploadExtensions []string `json:"app.allowed_file_upload_extensions"`
|
|
}
|
|
|
|
type EmailNotification struct {
|
|
Username string `json:"notification.email.username" db:"notification.email.username"`
|
|
Host string `json:"notification.email.host" db:"notification.email.host"`
|
|
Port int `json:"notification.email.port" db:"notification.email.port"`
|
|
Password string `json:"notification.email.password" db:"notification.email.password"`
|
|
MaxConns int `json:"notification.email.max_conns" db:"notification.email.max_conns"`
|
|
IdleTimeout string `json:"notification.email.idle_timeout" db:"notification.email.idle_timeout"`
|
|
WaitTimeout string `json:"notification.email.wait_timeout" db:"notification.email.wait_timeout"`
|
|
AuthProtocol string `json:"notification.email.auth_protocol" db:"notification.email.auth_protocol"`
|
|
EmailAddress string `json:"notification.email.email_address" db:"notification.email.email_address"`
|
|
MaxMsgRetries int `json:"notification.email.max_msg_retries" db:"notification.email.max_msg_retries"`
|
|
Enabled bool `json:"notification.email.enabled" db:"notification.email.enabled"`
|
|
}
|
|
|
|
type Settings struct {
|
|
EmailNotification
|
|
General
|
|
}
|