()
| 502 | } |
| 503 | |
| 504 | func getCertificateDuration() time.Duration { |
| 505 | duration := configuration.Current.CertificateDuration |
| 506 | if duration <= 0 { |
| 507 | return configuration.CertificateDuration * 24 * time.Hour |
| 508 | } |
| 509 | return time.Duration(duration) * 24 * time.Hour |
| 510 | } |
| 511 | |
| 512 | func getCheckThreshold() time.Duration { |
| 513 | threshold := configuration.Current.ExpiringCheckThreshold |
no outgoing calls
no test coverage detected