{"modulePath":"code.cloudfoundry.org/debugserver","version":"v0.126.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debugserver\n\n## Constants\n\n```go\nconst (\n\tDebugFlag = \"debugAddr\"\n)\n```\n\n## Functions\n\n```go\nfunc AddFlags(flags *flag.FlagSet)\n```\n\n```go\nfunc DebugAddress(flags *flag.FlagSet) string\n```\n\n```go\nfunc Handler(zapCtrl zapLogLevelController) http.Handler\n```\n\n```go\nfunc Run(address string, zapCtrl zapLogLevelController) (ifrit.Process, error)\n```\nRun starts the debug server with the provided address and log controller. Run() -\u003e runProcess() -\u003e Runner() -\u003e http\\_server.New() -\u003e Handler()\n\n```go\nfunc Runner(address string, zapCtrl zapLogLevelController) ifrit.Runner\n```\nRunner creates an ifrit.Runner for the debug server with the provided address and log controller.\n\n```go\nfunc ValidateAndNormalize(w http.ResponseWriter, r *http.Request, level []byte) (string, error)\n```\nExported only for tests\n\n## Types\n\n```go\ntype DebugServerConfig struct {\n\tDebugAddress string `json:\"debug_address\"`\n}\n```\n\n```go\ntype LagerAdapter struct {\n\tSink ReconfigurableSinkInterface\n}\n```\nLagerAdapter is an adapter for the ReconfigurableSinkInterface to work with lager.LogLevel.\n\n```go\nfunc (l *LagerAdapter) SetMinLevel(level lager.LogLevel)\n```\nSetMinLevel sets the minimum log level for the LagerAdapter.\n\n```go\ntype ReconfigurableSinkInterface interface {\n\tSetMinLevel(level lager.LogLevel)\n}\n```\n\n","path":"code.cloudfoundry.org/debugserver","name":"debugserver","synopsis":"","isRedistributable":true}
