debugserver package - code.cloudfoundry.org/debugserver - Go Packages
- Constants
- func AddFlags(flags *flag.FlagSet)
- func DebugAddress(flags *flag.FlagSet) string
- func Handler(zapCtrl zapLogLevelController) http.Handler
- func Run(address string, zapCtrl zapLogLevelController) (ifrit.Process, error)
- func Runner(address string, zapCtrl zapLogLevelController) ifrit.Runner
- func ValidateAndNormalize(w http.ResponseWriter, r *http.Request, level []byte) (string, error)
- type DebugServerConfig
- type LagerAdapter
- type ReconfigurableSinkInterface
This section is empty.
Run starts the debug server with the provided address and log controller. Run() -> runProcess() -> Runner() -> http_server.New() -> Handler()
Runner creates an ifrit.Runner for the debug server with the provided address and log controller.
type DebugServerConfig struct {
DebugAddress string `json:"debug_address"`
}
type LagerAdapter struct {
Sink ReconfigurableSinkInterface
}
LagerAdapter is an adapter for the ReconfigurableSinkInterface to work with lager.LogLevel.
SetMinLevel sets the minimum log level for the LagerAdapter.