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

17 lines
207 B
Go
Raw Permalink Normal View History

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
}