{"modulePath":"github.com/ethersphere/bee","version":"v1.6.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debugapi\n\nPackage debugapi exposes the debug API used to control and analyze low-level and runtime features and functionalities of Bee.\n\n## Variables\n\n```go\nvar Version = \"0.0.0\"\n```\nVersion is set in the build process.\n\n## Types\n\n```go\ntype BeeNodeMode uint\n```\n\n```go\nconst (\n\tLightMode BeeNodeMode = iota\n\tFullMode\n\tDevMode\n\tUltraLightMode\n)\n```\n\n```go\nfunc (b BeeNodeMode) String() string\n```\n\n```go\ntype Peer struct {\n\tAddress  swarm.Address `json:\"address\"`\n\tFullNode bool          `json:\"fullNode\"`\n}\n```\nPeer holds information about a Peer.\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\nService implements http.Handler interface to be used in HTTP server.\n\n```go\nfunc New(publicKey, pssPublicKey ecdsa.PublicKey, ethereumAddress common.Address, logger logging.Logger, tracer *tracing.Tracer, corsAllowedOrigins []string, blockTime *big.Int, transaction transaction.Service, chainBackend transaction.Backend, restrict bool, auth authenticator, gatewayMode bool, beeMode BeeNodeMode, chainID int64) *Service\n```\nNew creates a new Debug API Service with only basic routers enabled in order to expose /addresses, /health endpoints, Go metrics and pprof. It is useful to expose these endpoints before all dependencies are configured and injected to have access to basic debugging tools and /health endpoint.\n\n```go\nfunc (s *Service) Configure(overlay swarm.Address, p2p p2p.DebugService, pingpong pingpong.Interface, topologyDriver topology.Driver, lightNodes *lightnode.Container, storer storage.Storer, tags *tags.Tags, accounting accounting.Interface, pseudosettle settlement.Interface, swapEnabled bool, chequebookEnabled bool, swap swap.Interface, chequebook chequebook.Service, batchStore postage.Storer, post postage.Service, postageContract postagecontract.Interface, traverser traversal.Traverser, erc20Service erc20.Service)\n```\nConfigure injects required dependencies and configuration parameters and constructs HTTP routes that depend on them. It is intended and safe to call this method only once.\n\n```go\nfunc (s *Service) MustRegisterMetrics(cs ...prometheus.Collector)\n```\n\n```go\nfunc (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements http.Handler interface.\n\n","path":"github.com/ethersphere/bee/pkg/debugapi","name":"debugapi","synopsis":"Package debugapi exposes the debug API used to control and analyze low-level and runtime features and functionalities of Bee.","isRedistributable":true}
