bouncer/internal/proxy/director/layer/circuitbreaker/options.go

20 lines
304 B
Go
Raw Normal View History

2023-07-06 03:19:45 +02:00
package circuitbreaker
type Options struct {
TemplateDir string
}
type OptionFunc func(*Options)
func defaultOptions() *Options {
return &Options{
TemplateDir: "./templates",
}
}
func WithTemplateDir(templateDir string) OptionFunc {
return func(o *Options) {
o.TemplateDir = templateDir
}
}