Documentation
¶
Index ¶
- Constants
- Variables
- type Settings
- func (s *Settings) AreAllLogsDisabled() bool
- func (s *Settings) DateFormatBackup() string
- func (s *Settings) Delimiter() string
- func (s *Settings) GetAdminEmail() string
- func (s *Settings) GetApplicationAuthor() string
- func (s *Settings) GetApplicationCopyright() string
- func (s *Settings) GetApplicationDescription() string
- func (s *Settings) GetApplicationEnvironment() string
- func (s *Settings) GetApplicationHomePath() string
- func (s *Settings) GetApplicationLocale() string
- func (s *Settings) GetApplicationName() string
- func (s *Settings) GetApplicationPrefix() string
- func (s *Settings) GetApplicationReleaseDate() string
- func (s *Settings) GetApplicationVersion() string
- func (s *Settings) GetDatabaseHost() string
- func (s *Settings) GetDatabaseName() string
- func (s *Settings) GetDatabasePassword() string
- func (s *Settings) GetDatabasePath() string
- func (s *Settings) GetDatabasePoolSize() int
- func (s *Settings) GetDatabasePort() int
- func (s *Settings) GetDatabasePortAsString() string
- func (s *Settings) GetDatabaseTimeout() int
- func (s *Settings) GetDatabaseType() string
- func (s *Settings) GetDatabaseUser() string
- func (s *Settings) GetDatabaseVersion() int
- func (s *Settings) GetDateFormat() string
- func (s *Settings) GetDateFormatDMY2() string
- func (s *Settings) GetDateFormatForBackupDirectory() string
- func (s *Settings) GetDateFormatYMD() string
- func (s *Settings) GetDateTimeFormat() string
- func (s *Settings) GetDisplayDelimiter() string
- func (s *Settings) GetEmailFooter() string
- func (s *Settings) GetEmailHost() string
- func (s *Settings) GetEmailPassword() string
- func (s *Settings) GetEmailPort() int
- func (s *Settings) GetEmailPortAsString() string
- func (s *Settings) GetEmailSender() string
- func (s *Settings) GetEmailUser() string
- func (s *Settings) GetFaviconPath() string
- func (s *Settings) GetHumanReadableDateFormat() string
- func (s *Settings) GetInternalDateFormat() string
- func (s *Settings) GetLocaleName(in string) string
- func (s *Settings) GetLocales() []struct{ ... }
- func (s *Settings) GetLogoPath() string
- func (s *Settings) GetLogsMaxAge() int
- func (s *Settings) GetLogsMaxBackups() int
- func (s *Settings) GetLogsMaxSize() int
- func (s *Settings) GetMaxHistoryEntries() int
- func (s *Settings) GetMessageActionKey() string
- func (s *Settings) GetMessageContentKey() string
- func (s *Settings) GetMessageTitleKey() string
- func (s *Settings) GetMessageTypeKey() string
- func (s *Settings) GetPushoverToken() string
- func (s *Settings) GetPushoverUserKey() string
- func (s *Settings) GetSecurityServiceUserCode() string
- func (s *Settings) GetSecurityServiceUserName() string
- func (s *Settings) GetSecuritySessionExpiryKey() string
- func (s *Settings) GetSecuritySessionExpiryPeriodKey() int
- func (s *Settings) GetSecuritySessionKeyName() string
- func (s *Settings) GetSecuritySessionTokenKey() string
- func (s *Settings) GetSecuritySessionUserCodeKey() string
- func (s *Settings) GetSecuritySessionUserIDKey() string
- func (s *Settings) GetServerHost() string
- func (s *Settings) GetServerPort() int
- func (s *Settings) GetServerPortAsString() string
- func (s *Settings) GetServerProtocol() string
- func (s *Settings) GetStatus_Error() string
- func (s *Settings) GetStatus_Offline() string
- func (s *Settings) GetStatus_Online() string
- func (s *Settings) GetStatus_Unknown() string
- func (s *Settings) GetStatus_Warning() string
- func (s *Settings) GetTimeFormat() string
- func (s *Settings) GetTranslationLocale() string
- func (s *Settings) GetTranslationServerHost() string
- func (s *Settings) GetTranslationServerPort() int
- func (s *Settings) GetTranslationServerPortAsString() string
- func (s *Settings) GetTranslationServerProtocol() string
- func (s *Settings) GetValidHosts() []struct{ ... }
- func (s *Settings) GetValidOrigins() []string
- func (s *Settings) IsApiLoggingDisabled() bool
- func (s *Settings) IsApplicationMode(inMode string) bool
- func (s *Settings) IsAuditLoggingDisabled() bool
- func (s *Settings) IsCommunicationsLoggingDisabled() bool
- func (s *Settings) IsDatabaseLoggingDisabled() bool
- func (s *Settings) IsEventLoggingDisabled() bool
- func (s *Settings) IsExportLoggingDisabled() bool
- func (s *Settings) IsGeneralLoggingDisabled() bool
- func (s *Settings) IsImportLoggingDisabled() bool
- func (s *Settings) IsLogCompressionEnabled() bool
- func (s *Settings) IsSecurityLoggingDisabled() bool
- func (s *Settings) IsServiceLoggingDisabled() bool
- func (s *Settings) IsTimingLoggingDisabled() bool
- func (s *Settings) IsTraceLoggingDisabled() bool
- func (s *Settings) IsTranslationLoggingDisabled() bool
- func (s *Settings) IsValidLocale(in string) bool
- func (s *Settings) IsValidOrigin(in string) bool
- func (s *Settings) IsWarningLoggingDisabled() bool
- func (s *Settings) SEP() string
- func (s *Settings) Spew()
Constants ¶
View Source
const ( MODE_DEVELOPMENT = "development" MODE_PRODUCTION = "production" MODE_TEST )
Variables ¶
View Source
var FALSE = "false"
View Source
var TRUE = "true"
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
Application struct {
Name string `toml:"name"`
Prefix string `toml:"prefix"`
Home string `toml:"home"`
Description string `toml:"description"`
Version string `toml:"version"`
Environment string `toml:"environment"`
ReleaseDate string `toml:"releaseDate"`
Copyright string `toml:"copyright"`
Author string `toml:"author"`
License string `toml:"license"`
Locale string `toml:"locale"`
} `toml:"Application"`
Database struct {
Version int `toml:"version"`
Type string `toml:"type"`
Host string `toml:"host"`
Port int `toml:"port"`
Name string `toml:"name"`
User string `toml:"user"`
Pass string `toml:"pass"`
Path string `toml:"path"`
PoolSize int `toml:"poolSize"`
Timeout int `toml:"timeout"`
} `toml:"Database"`
Server struct {
Host string `toml:"host"`
Port int `toml:"port"`
Protocol string `toml:"protocol"`
Environment string `toml:"environment"`
} `toml:"Server"`
Translation struct {
Host string `toml:"host"`
Port int `toml:"port"`
Locale string `toml:"locale"`
Protocol string `toml:"protocol"`
} `toml:"Translation"`
Assets struct {
Logo string `toml:"logo"`
Favicon string `toml:"favicon"`
} `toml:"Assets"`
Dates struct {
DateTimeFormat string `toml:"dateTimeFormat"`
DateFormat string `toml:"dateFormat"`
TimeFormat string `toml:"timeFormat"`
Backup string `toml:"backup"`
BackupFolder string `toml:"backupFolder"`
Human string `toml:"human"`
DMY2 string `toml:"dmy2"`
YMD string `toml:"ymd"`
Internal string `toml:"internal"`
} `toml:"Dates"`
History struct {
MaxEntries int `toml:"maxEntries"`
} `toml:"History"`
Hosts []struct {
Name string `toml:"name"`
FQDN string `toml:"fqdn"`
IP string `toml:"ip"`
Zone string `toml:"zone"`
} `toml:"Hosts"`
Security struct {
SessionKeyName string `toml:"sessionKey"`
SessionUserIDKey string `toml:"sessionUserIDKey"`
SessionUserCodeKey string `toml:"sessionUserCodeKey"`
SessionTokenKey string `toml:"sessionTokenKey"`
SessionExpiry int `toml:"sessionExpiry"`
ServiceUserName string `toml:"serviceUserName"`
ServiceUserCode string `toml:"serviceUserCode"`
SessionExpiryKey string `toml:"sessionExpiryKey"`
} `toml:"Security"`
Message struct {
TypeKey string `toml:"typeKey"`
TitleKey string `toml:"titleKey"`
ContentKey string `toml:"contentKey"`
ActionKey string `toml:"actionKey"`
} `toml:"Message"`
Display struct {
Delimiter string `toml:"delim"`
} `toml:"Display"`
Pushover struct {
UserKey string `toml:"userKey"`
APIToken string `toml:"apiToken"`
} `toml:"Pushover"`
Status struct {
UNKNOWN string `toml:"unknown"`
ONLINE string `toml:"online"`
OFFLINE string `toml:"offline"`
ERROR string `toml:"error"`
WARNING string `toml:"warning"`
} `toml:"Status"`
AllowedOrigins []struct {
Name string `toml:"name"`
} `toml:"Origins"`
Locales []struct {
Key string `toml:"key"`
Name string `toml:"name"`
} `toml:"Locales"`
Email struct {
Host string `toml:"host"`
Port int `toml:"port"`
User string `toml:"user"`
Password string `toml:"password"`
From string `toml:"from"`
Footer string `toml:"footer"`
Admin string `toml:"admin"`
} `toml:"Email"`
Logging struct {
Disable struct {
General string `toml:"general"`
Timing string `toml:"timing"`
Service string `toml:"service"`
Audit string `toml:"audit"`
Translation string `toml:"translation"`
Trace string `toml:"trace"`
Warning string `toml:"warning"`
Event string `toml:"event"`
Security string `toml:"security"`
Database string `toml:"database"`
Api string `toml:"api"`
Import string `toml:"import"`
Export string `toml:"export"`
Communications string `toml:"comms"`
All string `toml:"all"`
} `toml:"disable"`
Defaults struct {
MaxSize string `toml:"maxSize"`
MaxBackups string `toml:"maxBackups"`
MaxAge string `toml:"maxAge"`
Compress string `toml:"compress"`
} `toml:"Defaults"`
} `toml:"Logging"`
}
func (*Settings) AreAllLogsDisabled ¶
func (*Settings) DateFormatBackup ¶
func (*Settings) GetAdminEmail ¶
func (*Settings) GetApplicationAuthor ¶
func (*Settings) GetApplicationCopyright ¶
func (*Settings) GetApplicationDescription ¶
func (*Settings) GetApplicationEnvironment ¶
func (*Settings) GetApplicationHomePath ¶
func (*Settings) GetApplicationLocale ¶
func (*Settings) GetApplicationName ¶
func (*Settings) GetApplicationPrefix ¶
func (*Settings) GetApplicationReleaseDate ¶
func (*Settings) GetApplicationVersion ¶
func (*Settings) GetDatabaseHost ¶
func (*Settings) GetDatabaseName ¶
func (*Settings) GetDatabasePassword ¶
func (*Settings) GetDatabasePath ¶
func (*Settings) GetDatabasePoolSize ¶
func (*Settings) GetDatabasePort ¶
func (*Settings) GetDatabasePortAsString ¶
func (*Settings) GetDatabaseTimeout ¶
func (*Settings) GetDatabaseType ¶
func (*Settings) GetDatabaseUser ¶
func (*Settings) GetDatabaseVersion ¶
func (*Settings) GetDateFormat ¶
func (*Settings) GetDateFormatDMY2 ¶
func (*Settings) GetDateFormatForBackupDirectory ¶
func (*Settings) GetDateFormatYMD ¶
func (*Settings) GetDateTimeFormat ¶
func (*Settings) GetDisplayDelimiter ¶
func (*Settings) GetEmailFooter ¶
func (*Settings) GetEmailHost ¶
func (*Settings) GetEmailPassword ¶
func (*Settings) GetEmailPort ¶
func (*Settings) GetEmailPortAsString ¶
func (*Settings) GetEmailSender ¶
func (*Settings) GetEmailUser ¶
func (*Settings) GetFaviconPath ¶
func (*Settings) GetHumanReadableDateFormat ¶
func (*Settings) GetInternalDateFormat ¶
func (*Settings) GetLocaleName ¶
func (*Settings) GetLocales ¶
func (*Settings) GetLogoPath ¶
func (*Settings) GetLogsMaxAge ¶
func (*Settings) GetLogsMaxBackups ¶
func (*Settings) GetLogsMaxSize ¶
func (*Settings) GetMaxHistoryEntries ¶
func (*Settings) GetMessageActionKey ¶
func (*Settings) GetMessageContentKey ¶
func (*Settings) GetMessageTitleKey ¶
func (*Settings) GetMessageTypeKey ¶
func (*Settings) GetPushoverToken ¶
func (*Settings) GetPushoverUserKey ¶
func (*Settings) GetSecurityServiceUserCode ¶
func (*Settings) GetSecurityServiceUserName ¶
func (*Settings) GetSecuritySessionExpiryKey ¶
func (*Settings) GetSecuritySessionExpiryPeriodKey ¶
func (*Settings) GetSecuritySessionKeyName ¶
func (*Settings) GetSecuritySessionTokenKey ¶
func (*Settings) GetSecuritySessionUserCodeKey ¶
func (*Settings) GetSecuritySessionUserIDKey ¶
func (*Settings) GetServerHost ¶
func (*Settings) GetServerPort ¶
func (*Settings) GetServerPortAsString ¶
func (*Settings) GetServerProtocol ¶
func (*Settings) GetStatus_Error ¶
func (*Settings) GetStatus_Offline ¶
func (*Settings) GetStatus_Online ¶
func (*Settings) GetStatus_Unknown ¶
func (*Settings) GetStatus_Warning ¶
func (*Settings) GetTimeFormat ¶
func (*Settings) GetTranslationLocale ¶
func (*Settings) GetTranslationServerHost ¶
func (*Settings) GetTranslationServerPort ¶
func (*Settings) GetTranslationServerPortAsString ¶
func (*Settings) GetTranslationServerProtocol ¶
func (*Settings) GetValidHosts ¶
func (*Settings) GetValidOrigins ¶
func (*Settings) IsApiLoggingDisabled ¶
func (*Settings) IsApplicationMode ¶
func (*Settings) IsAuditLoggingDisabled ¶
func (*Settings) IsCommunicationsLoggingDisabled ¶ added in v1.2.41
func (*Settings) IsDatabaseLoggingDisabled ¶
func (*Settings) IsEventLoggingDisabled ¶
func (*Settings) IsExportLoggingDisabled ¶ added in v1.2.32
func (*Settings) IsGeneralLoggingDisabled ¶
func (*Settings) IsImportLoggingDisabled ¶ added in v1.2.32
func (*Settings) IsLogCompressionEnabled ¶
func (*Settings) IsSecurityLoggingDisabled ¶
func (*Settings) IsServiceLoggingDisabled ¶
func (*Settings) IsTimingLoggingDisabled ¶
func (*Settings) IsTraceLoggingDisabled ¶
func (*Settings) IsTranslationLoggingDisabled ¶
func (*Settings) IsValidLocale ¶
func (*Settings) IsValidOrigin ¶
func (*Settings) IsWarningLoggingDisabled ¶
Click to show internal directories.
Click to hide internal directories.