16 lines
313 B
Go
16 lines
313 B
Go
|
|
package configs
|
||
|
|
|
||
|
|
type JobSchedulerConfig struct {
|
||
|
|
MaxRetentionDays int
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewJobSchedulerConfig() *JobSchedulerConfig {
|
||
|
|
return &JobSchedulerConfig{
|
||
|
|
MaxRetentionDays: getInt("jobScheduler.retentionInDays", true),
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (p *JobSchedulerConfig) GetMaxRetentionDays() int {
|
||
|
|
return p.MaxRetentionDays
|
||
|
|
}
|