Indexer API
Table of Contents
Methods
Method Name | Request Type | Response Type | Description |
---|---|---|---|
getShardedNodes | - | ShardedNodes | This gets all the storage nodes whether it's trusted or discovered |
getNodeLocations | - | map[string]*IPLocation | This gets the locations of storage nodes |
getFileLocations | String | []*shard.ShardedNode | This gets the locations of a data identified by its root |
Data Structure
ShardedNodes
Field | Type | Description |
---|---|---|
Trusted | []*ShardedNode | Trusted storage nodes that are live and serving |
Discovered | []*ShardedNode | Discovered storage nodes in the storage network |
ShardedNode
Field | Type | Description |
---|---|---|
URL | String | The endpoint of the node |
Config | ShardConfig | The sharding config of the node |
Latency | int64 | The latency of the node in ms |
Since | int64 | The timestamp when last updated |
ShardConfig
Field | Type | Description |
---|---|---|
ShardId | uint64 | The id of the shard in <id>/<num> |
NumShard | uint64 | The num of the shard in <id>/<num> |
IPLocation
Field | Type | Description |
---|---|---|
City | string | The city of the node |
Region | string | The region of the node |
Country | string | The country of the node |
Location | string | The latitude/longitude of the node |
Timezone | string | The timezone of the node |
Last updated