debug

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// RouteDebugSolidifier is the debug route to manually trigger the solidifier.
	// POST triggers the solidifier.
	RouteDebugSolidifier = "/solidifier"

	// RouteDebugOutputs is the debug route for getting all output IDs.
	// GET returns the outputIDs for all outputs.
	RouteDebugOutputs = "/outputs"

	// RouteDebugOutputsUnspent is the debug route for getting all unspent output IDs.
	// GET returns the outputIDs for all unspent outputs.
	RouteDebugOutputsUnspent = "/outputs/unspent"

	// RouteDebugOutputsSpent is the debug route for getting all spent output IDs.
	// GET returns the outputIDs for all spent outputs.
	RouteDebugOutputsSpent = "/outputs/spent"

	// RouteDebugMilestoneDiffs is the debug route for getting a milestone diff by it's milestoneIndex.
	// GET returns the utxo diff (new outputs & spents) for the milestone index.
	RouteDebugMilestoneDiffs = "/ms-diff/:" + restapipkg.ParameterMilestoneIndex

	// RouteDebugRequests is the debug route for getting all pending requests.
	// GET returns a list of all pending requests.
	RouteDebugRequests = "/requests"

	// RouteDebugBlockCone is the debug route for traversing a cone of a block.
	// it traverses the parents of a block until they reference an older milestone than the start block.
	// GET returns the path of this traversal and the "entry points".
	RouteDebugBlockCone = "/block-cones/:" + restapipkg.ParameterBlockID
)
View Source
const (

	// QueryParameterOutputType is used to filter for a certain output type.
	QueryParameterOutputType = "type"
)

Variables

View Source
var (
	Component *app.Component
)
View Source
var ParamsDebug = &ParametersDebug{}

Functions

This section is empty.

Types

type ParametersDebug

type ParametersDebug struct {
	// Enabled defines whether the debug plugin is enabled.
	Enabled bool `default:"false" usage:"whether the debug plugin is enabled"`
}

ParametersDebug contains the definition of the parameters used by the debug plugin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL