bouncer/internal/proxy/director/layer/circuitbreaker/options.go
William Petit 93d23cfa98
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
Cadoles/bouncer/pipeline/pr-develop This commit looks good
feat: implements circuitbreaker layer
2023-07-05 19:19:45 -06:00

20 lines
304 B
Go

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