16 lines
347 B
Go
16 lines
347 B
Go
|
package config
|
||
|
|
||
|
type ProfilingConfig struct {
|
||
|
Enabled InterpolatedBool `yaml:"enabled"`
|
||
|
Endpoint InterpolatedString `yaml:"endpoint"`
|
||
|
BasicAuth *BasicAuthConfig `yaml:"basicAuth"`
|
||
|
}
|
||
|
|
||
|
func NewDefaultProfilingConfig() ProfilingConfig {
|
||
|
return ProfilingConfig{
|
||
|
Enabled: true,
|
||
|
Endpoint: "/.bouncer/profiling",
|
||
|
BasicAuth: nil,
|
||
|
}
|
||
|
}
|