MCPcopy Create free account
hub / github.com/CPChain/chain / NewPublicDebugAPI

Function NewPublicDebugAPI

node/api.go:264–266  ·  view source on GitHub ↗

NewPublicDebugAPI creates a new API definition for the public debug methods of the node itself.

(node *Node)

Source from the content-addressed store, hash-verified

262// NewPublicDebugAPI creates a new API definition for the public debug methods
263// of the node itself.
264func NewPublicDebugAPI(node *Node) *PublicDebugAPI {
265 return &PublicDebugAPI{node: node}
266}
267
268// Metrics retrieves all the known system metric collected by the node.
269func (api *PublicDebugAPI) Metrics(raw bool) (map[string]interface{}, error) {

Callers 1

apisMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected