Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrServiceName = "service name error" ErrConfigurationFilePathDefault = "default configuration file path error" )
View Source
const ( ServiceName_ACM = "Access Control Module" ServiceName_GWM = "Gateway Module" ServiceName_MM = "Message Module" ServiceName_RCS = "Captcha Module" ServiceName_SMTP = "SMTP Module" )
View Source
const ( ConfigurationFilePathDefault_ACM = "ACM.json" ConfigurationFilePathDefault_GWM = "GWM.json" ConfigurationFilePathDefault_MM = "MM.json" ConfigurationFilePathDefault_RCS = "RCS.json" ConfigurationFilePathDefault_SMTP = "SMTP.json" )
View Source
const ( ServiceShortName_ACM = "ACM" ServiceShortName_GWM = "GWM" ServiceShortName_MM = "MM" ServiceShortName_RCS = "RCS" ServiceShortName_SMTP = "SMTP" )
View Source
const ( ModuleId_ACM = 1 ModuleId_GWM = 2 ModuleId_MM = 3 ModuleId_RCS = 4 ModuleId_SMTP = 5 )
Variables ¶
This section is empty.
Functions ¶
func NewSettingsFromFile ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func (*Application) Use ¶
func (a *Application) Use() (err error)
type CommandLineArguments ¶
type CommandLineArguments struct {
// contains filtered or unexported fields
}
func NewCommandLineArgumentsFromOsArgs ¶
func NewCommandLineArgumentsFromOsArgs(osArgs []string, defaultCfgFilePath string) (cla *CommandLineArguments, err error)
func (*CommandLineArguments) GetConfigurationFilePath ¶
func (cla *CommandLineArguments) GetConfigurationFilePath() string
func (*CommandLineArguments) IsDefaultFile ¶
func (cla *CommandLineArguments) IsDefaultFile() (isDefaultFile bool)
IsDefaultFile tells whether the default file path is used for the configuration file.
Click to show internal directories.
Click to hide internal directories.