Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #95 from atc0005/refresh-stringer-interface-implem…
Browse files Browse the repository at this point in the history
…entation

Update config Stringer interface implementation
  • Loading branch information
atc0005 authored Jul 17, 2020
2 parents a0bb45e + c7cdbee commit 61af085
Showing 1 changed file with 43 additions and 13 deletions.
56 changes: 43 additions & 13 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,67 @@ var Version string = "x.y.z"
func (c *Config) String() string {
return fmt.Sprintf(
"UnifiedConfig: { "+
"NetworkLocalTCPPort: %v "+
"NetworkLocalIPAddress: %v, "+
"LoggingLevel: %s, "+
"LoggingOutput: %s, "+
"LoggingFormat: %s, "+
"DisabledUsersFile: %s, "+
"Network.LocalTCPPort: %v "+
"Network.LocalIPAddress: %v, "+
"Logging.Level: %s, "+
"Logging.Output: %s, "+
"Logging.Format: %s, "+
"DisabledUsers.File: %s, "+
"DisabledUsers.EntrySuffix: %s, "+
"DisabledUsers.FilePermissions: %v, "+
"ReportedUsers.File: %q, "+
"ReportedUsersFilePermissions: %v, "+
"IgnoredUsersFile: [%q %t],"+
"IgnoredIPAddressesFile: [%q %t],"+
"TeamsWebhookURL: %q,"+
"TeamsNotificationRetries: %q,"+
"TeamsNotificationRetryDelay: %q,"+
"ReportedUsers.LogFile: %q, "+
"ReportedUsers.LogFilePermissions: %v, "+
"IgnoredUsers.File: %q,"+
"IsSetIgnoredUsersFile: %t,"+
"IgnoredIPAddresses.File: %q,"+
"IsSetIgnoredIPAddressesFile: %t,"+
"IgnoreLookupErrors: %t,"+
"MSTeams.WebhookURL: %q,"+
"MSTeams.RateLimit: %v,"+
"MSTeams.Retries: %v,"+
"MSTeams.RetryDelay: %v,"+
"NotifyTeams: %t,"+
"NotifyEmail: %t,"+
"Email.RateLimit: %v,"+
"Email.Retries: %v,"+
"Email.RetryDelay: %v,"+
"EZproxy.ExecutablePath: %v,"+
"EZproxy.ActiveFilePath: %v,"+
"EZproxy.AuditFileDirPath: %v,"+
"EZproxy.SearchRetries: %v,"+
"EZproxy.SearchDelay: %v,"+
"EZproxy.TerminateSessions: %t,"+
"ConfigFile: %q}",
c.LocalTCPPort(),
c.LocalIPAddress(),
c.LogLevel(),
c.LogOutput(),
c.LogFormat(),
c.DisabledUsersFile(),
c.DisabledUsersFileEntrySuffix(),
c.DisabledUsersFilePermissions(),
c.ReportedUsersLogFile(),
c.ReportedUsersLogFilePermissions(),
c.IgnoredUsersFile(),
c.IsSetIgnoredUsersFile(),
c.IgnoredIPAddressesFile(),
c.IsSetIgnoredIPAddressesFile(),
c.IgnoreLookupErrors(),
c.TeamsWebhookURL(),
c.TeamsNotificationRateLimit(),
c.TeamsNotificationRetries(),
c.TeamsNotificationRetryDelay(),
c.NotifyTeams(),
c.NotifyEmail(),
c.EmailNotificationRateLimit(),
c.EmailNotificationRetries(),
c.EmailNotificationRetryDelay(),
c.EZproxyExecutablePath(),
c.EZproxyActiveFilePath(),
c.EZproxyAuditFileDirPath(),
c.EZproxySearchRetries(),
c.EZproxySearchDelay(),
c.EZproxyTerminateSessions(),
c.ConfigFile(),
)
}
Expand Down

0 comments on commit 61af085

Please sign in to comment.