bouncer/internal/config/layers.go
William Petit 2a8849493d
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
feat(layer,queue): display templatized page for queued users
2023-06-12 19:57:13 -06:00

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"`
}