Documentation ¶
Overview ¶
Package debug implements debug server for satellite and storage node.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("debug")
Error is default error class for debug package.
Functions ¶
This section is empty.
Types ¶
type ButtonGroup ¶
ButtonGroup contains description of a collection of buttons.
type Config ¶
type Config struct { Address string `internal:"true"` ControlTitle string `internal:"true"` Control bool `help:"expose control panel" releaseDefault:"false" devDefault:"true"` }
Config defines configuration for debug server.
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
Panel implements a serving of customized callbacks.
func (*Panel) Add ¶
func (panel *Panel) Add(cats ...*ButtonGroup)
Add adds a button group to the panel.
type Server ¶
type Server struct { Panel *Panel // contains filtered or unexported fields }
Server provides endpoints for debugging.
func NewServer ¶
func NewServer(log *zap.Logger, listener net.Listener, registry *monkit.Registry, config Config) *Server
NewServer returns a new debug.Server.
Click to show internal directories.
Click to hide internal directories.