Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RouteNodeInfoExtended is the route to get additional info about the node. // GET returns the extended info of the node. RouteNodeInfoExtended = "/info" // RouteDatabaseSizes is the route to get the size of the databases. // GET returns the sizes of the databases. RouteDatabaseSizes = "/database/sizes" // RouteGossipMetrics is the route to get metrics about gossip. // GET returns the gossip metrics. RouteGossipMetrics = "/gossip" )
Variables ¶
View Source
var (
Plugin *app.Plugin
)
Functions ¶
This section is empty.
Types ¶
type DatabaseSizesMetric ¶
type DatabaseSizesMetric struct { Tangle int64 `json:"tangle"` UTXO int64 `json:"utxo"` Total int64 `json:"total"` Time int64 `json:"ts"` }
DatabaseSizesMetric represents database size metrics.
type NodeInfoExtended ¶
type NodeInfoExtended struct { Version string `json:"version"` LatestVersion string `json:"latestVersion"` Uptime int64 `json:"uptime"` NodeID string `json:"nodeId"` NodeAlias string `json:"nodeAlias"` MemoryUsage int64 `json:"memUsage"` }
NodeInfoExtended represents extended information about the node.
Click to show internal directories.
Click to hide internal directories.