Documentation
¶
Index ¶
Constants ¶
View Source
const ERR_APPLICATION_NAME_BLANK = "sorry the application name must not be blank"
View Source
const ERR_FACTORY_INCONSISTENT_STATE = "the Factory is in an inconsistent state, please only use public methods to modify"
View Source
const ERR_FACTORY_NOT_INITIALIZED = "sorry the factory has not been initilalized please run f.Intialize() and try again"
View Source
const ERR_INVALID_OUTPUT_TYPE = "sorry the output type you have set is not valid and not supported"
View Source
const ERR_KEY_MUST_MATCH_REGEX = "sorry the key must only include letters and underscores [0-9A-Za-z_]"
View Source
const OUTPUT_TYPE_INI = "ini"
View Source
const OUTPUT_TYPE_INVALID = "nri"
View Source
const OUTPUT_TYPE_JSON = "json"
View Source
const REGEX_KEY_NAME = "(?m)^[0-9A-Za-z_]+$"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
ApplicationName string `json:"application_name"`
ConfigurationDirectory string `json:"configuration_directory"`
CredentialFile string `json:"credential_file"`
UseEnvironment bool `json:"use_environment"`
Initialized bool `json:"initialized"`
OutputType string `json:"output_type"`
Alternates map[string]string `json:"alternates"`
}
func (*Factory) Initialize ¶
func (*Factory) SetEnvironmentKeys ¶
func (*Factory) SetOutputType ¶
Click to show internal directories.
Click to hide internal directories.