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

17 lines
207 B
Go

package rewriter
type Options struct {
}
type OptionFunc func(opts *Options)
func NewOptions(funcs ...OptionFunc) *Options {
opts := &Options{}
for _, fn := range funcs {
fn(opts)
}
return opts
}