/dup

Protocol and application for tracking node uptime on a distributed network.

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

dup

Protocol and application for tracking node uptime on a distributed network.

/

URL: http://example.com/

METHOD: GET

Display the latest nodes as defined by seenThreshold.

{
  "active": [
    {
      "nodeID": "e4327043c4746c998a758db868e6d6a1ff9ddf0a",
      "lastSeen": 1522871547654
    },
    {
      "nodeID": "a14cc24085d7a9ea43ec3712d72b1dbb9ad3d2c0",
      "lastSeen": 1522871547912
    },
    ...
  ]
}

/api/ping

URL: http://example.com/api/ping/<nodeID>

METHOD: GET

Allow the node to ping.

{
  "active": [
    {
      "nodeID": "e4327043c4746c998a758db868e6d6a1ff9ddf0a",
      "lastSeen": 1522871547654
    },
    {
      "nodeID": "a14cc24085d7a9ea43ec3712d72b1dbb9ad3d2c0",
      "lastSeen": 1522871547912
    },
    ...
  ]
}