-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: consolidate and document default values
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
- Loading branch information
Showing
4 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package config | ||
|
||
import "time" | ||
|
||
// These are defaults, used in the documented spots. | ||
const ( | ||
// DefaultAddress is used if an "http_listen_addr" is not provided in the config. | ||
DefaultAddress = ":6060" | ||
// DefaultScanLockRetry is the default retry period for attempting locks | ||
// during the indexing process. Its name is a historical accident. | ||
DefaultScanLockRetry = 1 | ||
// DefaultMatcherPeriod is the default interval for running updaters. | ||
DefaultMatcherPeriod = 30 * time.Minute | ||
// DefaultUpdateRetention is the number of updates per vulnerability | ||
// database to retain. | ||
DefaultUpdateRetention = 10 | ||
// DefaultNotifierPollInterval is the default (and minimum) interval for the | ||
// notifier's change poll interval. The notifier will poll the database for | ||
// updated vulnerability databases at this rate. | ||
DefaultNotifierPollInterval = 5 * time.Second | ||
// DefaultNotifierDeliveryInterval is the default (and minimum) interval for | ||
// the notifier's delivery interval. The notifier will attempt to deliver | ||
// outstanding notifications at this rate. | ||
DefaultNotifierDeliveryInterval = 5 * time.Second | ||
) | ||
|
||
// BUG(hank) The DefaultNotifierPollInterval is absurdly low. | ||
|
||
// BUG(hank) The DefaultNotifierDeliveryInterval is absurdly low. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters