mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-15 14:10:34 -04:00
So far Phoenix have been embedded into the binary and we can customize the required config based on flags, env variables and optionally via config file. For now I'm embedding the whole Phonix content, optherwise the all-in-one binary `ocis` will get pretty complicated until we add the generate commands to that repo as well and provide a mechanism to inject the embedding.
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
|
|
}
|
|
}
|