Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrFileIsNotSet = "file is not set" ErrHttpSetting = "error in HTTP server setting" ErrSmtpSetting = "error in SMTP server setting" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpSettings ¶
HttpSettings are settings of an HTTP server for incoming requests.
type Settings ¶
type Settings struct { // Path to the file with these settings. FilePath string `json:"-"` HttpSettings `json:"http"` SmtpSettings `json:"smtp"` }
Settings is Server's settings.
func NewSettingsFromFile ¶
type SmtpSettings ¶
type SmtpSettings struct { Host string `json:"host"` Port uint16 `json:"port"` User string `json:"user"` Password string `json:"password"` UserAgent string `json:"userAgent"` }
SmtpSettings are parameters of the SMTP server used for sending e-mail messages. When a password is not set, it is taken from the stdin.
Click to show internal directories.
Click to hide internal directories.