William Petit
2a8849493d
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
22 lines
473 B
Go
22 lines
473 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type LayersConfig struct {
|
|
Queue QueueLayerConfig `yaml:"queue"`
|
|
}
|
|
|
|
func NewDefaultLayersConfig() LayersConfig {
|
|
return LayersConfig{
|
|
Queue: QueueLayerConfig{
|
|
TemplateDir: "./layers/queue/templates",
|
|
DefaultKeepAlive: NewInterpolatedDuration(time.Minute),
|
|
},
|
|
}
|
|
}
|
|
|
|
type QueueLayerConfig struct {
|
|
TemplateDir InterpolatedString `yaml:"templateDir"`
|
|
DefaultKeepAlive *InterpolatedDuration `yaml:"defaultKeepAlive"`
|
|
}
|