Documentation
¶
Index ¶
- func ApplyRoutes(r *gin.RouterGroup)
- func GetActiveDuration(peerID string, startTime, endTime time.Time) (time.Duration, error)
- func GetActiveNodes(startTime, endTime time.Time) ([]string, error)
- func GetActiveNodesHandler(c *gin.Context)
- func GetTotalActiveDuration(peerID string, startTime time.Time, endTime time.Time) (int64, error)
- func LogNodeStatus(peerID string, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(r *gin.RouterGroup)
func GetActiveDuration ¶
GetActiveDuration fetches the active duration of a node between two timestamps
func GetActiveNodes ¶
GetActiveNodes fetches all nodes that were active during a specific time range
func GetActiveNodesHandler ¶
GetActiveNodesHandler retrieves active nodes within a specific time range
func GetTotalActiveDuration ¶
GetTotalActiveDuration calculates the total duration (in seconds) that a node with a given PeerID was active
func LogNodeStatus ¶
LogNodeStatus logs the status change of a node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.