config dump endpoint for proxy
This commit is contained in:
@@ -20,6 +20,7 @@ type Options struct {
|
||||
Zpages bool
|
||||
Health func(http.ResponseWriter, *http.Request)
|
||||
Ready func(http.ResponseWriter, *http.Request)
|
||||
ConfigDump func(http.ResponseWriter, *http.Request)
|
||||
CorsAllowedOrigins []string
|
||||
CorsAllowedMethods []string
|
||||
CorsAllowedHeaders []string
|
||||
@@ -100,6 +101,13 @@ func Ready(r func(http.ResponseWriter, *http.Request)) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// ConfigDump to be documented.
|
||||
func ConfigDump(r func(http.ResponseWriter, *http.Request)) Option {
|
||||
return func(o *Options) {
|
||||
o.ConfigDump = r
|
||||
}
|
||||
}
|
||||
|
||||
// CorsAllowedOrigins provides a function to set the CorsAllowedOrigin option.
|
||||
func CorsAllowedOrigins(origins []string) Option {
|
||||
return func(o *Options) {
|
||||
|
||||
Reference in New Issue
Block a user