Documentation ¶
Overview ¶
Package generate contains HTTP handler for triggering data generation into the databae.
Index ¶
- type Config
- func (c *Config) DatabaseConfig() *database.Config
- func (c *Config) DebugReleaseSameDayKeys() bool
- func (c *Config) DefaultSymptomOnsetDaysAgo() uint
- func (c *Config) MaxExposureKeys() uint
- func (c *Config) MaxIntervalStartAge() time.Duration
- func (c *Config) MaxSameDayKeys() uint
- func (c *Config) MaxSymptomOnsetDays() uint
- func (c *Config) MaxValidSymptomOnsetReportDays() uint
- func (c *Config) ObservabilityExporterConfig() *observability.Config
- func (c *Config) SecretManagerConfig() *secrets.Config
- func (c *Config) TruncateWindow() time.Duration
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database database.Config SecretManager secrets.Config ObservabilityExporter observability.Config Port string `env:"PORT, default=8080"` NumExposures int `env:"NUM_EXPOSURES_GENERATED, default=10"` KeysPerExposure int `env:"KEYS_PER_EXPOSURE, default=14"` MaxKeysOnPublish uint `env:"MAX_KEYS_ON_PUBLISH, default=15"` MaxSameStartIntervalKeys uint `env:"MAX_SAME_START_INTERVAL_KEYS, default=2"` SimulateSameDayRelease bool `env:"SIMULATE_SAME_DAY_RELEASE, default=false"` MaxIntervalAge time.Duration `env:"MAX_INTERVAL_AGE_ON_PUBLISH, default=360h"` MaxMagnitudeSymptomOnsetDays uint `env:"MAX_SYMPTOM_ONSET_DAYS, default=14"` MaxSymptomOnsetReportDays uint `env:"MAX_VALID_SYMPTOM_ONSET_REPORT_DAYS, default=28"` CreatedAtTruncateWindow time.Duration `env:"TRUNCATE_WINDOW, default=1h"` DefaultRegion string `env:"DEFAULT_REGION, default=US"` ChanceOfKeyRevision int `env:"CHANCE_OF_KEY_REVISION, default=30"` // 0-100 are valid values. ChanceOfTraveler int `env:"CHANCE_OF_TRAVELER, default=20"` // 0-100 are valid values KeyRevisionDelay time.Duration `env:"KEY_REVISION_DELAY, default=2h"` // key revision will be forward dates this amount. SymptomOnsetDaysAgo uint `env:"DEFAULT_SYMPTOM_ONSET_DAYS_AGO, default=4"` ForceConfirmed bool `env:"FORCE_CONFIRMED, default=false"` // force report type to be confirmed for all exposures }
Config represents the configuration and associated environment variables for the publish components.
func (*Config) DatabaseConfig ¶
func (*Config) DebugReleaseSameDayKeys ¶
func (*Config) DefaultSymptomOnsetDaysAgo ¶ added in v0.16.0
func (*Config) MaxExposureKeys ¶
func (*Config) MaxIntervalStartAge ¶
func (*Config) MaxSameDayKeys ¶
func (*Config) MaxSymptomOnsetDays ¶
func (*Config) MaxValidSymptomOnsetReportDays ¶ added in v0.16.0
func (*Config) ObservabilityExporterConfig ¶
func (c *Config) ObservabilityExporterConfig() *observability.Config
func (*Config) SecretManagerConfig ¶
func (*Config) TruncateWindow ¶
Click to show internal directories.
Click to hide internal directories.