redmine

package
v0.0.0-...-e3259e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (c *Config) ValidateSMTPSettings() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL