Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
func ParseConfig(installDir string) (apps.ApplicationConfig, error)
ParseConfig obtains an ApplicationConfig from by parsing a config file
Types ¶
type Config ¶
type Config struct {
Default mode `json:"default"`
}
Config is a structure that matches the schema of Redmine config/configuration.yml file
func (Config) GetSMTPSettings ¶
func (c Config) GetSMTPSettings() *apps.SMTPSettings
GetSMTPSettings returns a SMTPSettings from Config structure
func (*Config) ValidateSMTPSettings ¶
ValidateSMTPSettings checks the SMTPSettings are correct
type SMTPSettings ¶
type SMTPSettings struct { Address string `json:"address"` Port int `json:"port"` Username string `json:"user_name"` Password string `json:"password"` Domain string `json:"domain"` Authentication string `json:"authentication"` AutoStartTLS bool `json:"enable_starttls_auto"` }
SMTPSettings is a structure that contains the SMTP configuration data of Redmine
Click to show internal directories.
Click to hide internal directories.