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