Files
opencloud/pkg/router/debug/option.go
2019-09-16 10:11:09 +02:00

19 lines
338 B
Go

package debug
// Option configures an assets option.
type Option func(*debug)
// WithToken returns an option to set a token.
func WithToken(val string) Option {
return func(d *debug) {
d.token = val
}
}
// WithPprof returns an option to enable pprof.
func WithPprof(val bool) Option {
return func(d *debug) {
d.pprof = val
}
}