mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 06:18:42 -05:00
19 lines
338 B
Go
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
|
|
}
|
|
}
|