Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpSettings ¶
type HttpSettings = cs.HttpSettings
HttpSettings are settings of an HTTP server for incoming requests.
type Settings ¶
type Settings struct { // Path to the file with these settings. FilePath cm.Path `json:"-"` // Program versioning information. VersionInfo *ver.Versioneer `json:"-"` HttpSettings `json:"http"` SystemSettings `json:"system"` SmtpSettings `json:"smtp"` }
Settings is Server's settings.
func NewSettingsFromFile ¶
func NewSettingsFromFile(filePath string, versionInfo *ver.Versioneer) (stn *Settings, err error)
func (*Settings) UseConstructor ¶
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.
func (SmtpSettings) Check ¶
func (s SmtpSettings) Check() (err error)
type SystemSettings ¶
SystemSettings are system settings.
func (SystemSettings) Check ¶
func (s SystemSettings) Check() (err error)
Click to show internal directories.
Click to hide internal directories.