Documentation
¶
Index ¶
Constants ¶
View Source
const ( V0Prefix = "/api/v0/" // Debug GetP2pDebugInfoPath = V0Prefix + "debug/p2p_info" GetDebugLogPath = V0Prefix + "debug/log" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(conf *config.Config, p2p *p2p.P2p, logBuffer *ringbuffer.RingBuffer) *Handler
func (*Handler) GetLog ¶
@Tags Debug @Summary Get logs @Accept json @Produce plain @Success 200 {string} string "log text" @Router /debug/log [GET]
func (*Handler) GetP2pDebugInfo ¶
@Tags Debug @Summary Get p2p debug info @Accept json @Produce json @Success 200 {object} entity.P2pDebugInfo @Router /debug/p2p_info [GET]
Click to show internal directories.
Click to hide internal directories.