mirror of
https://github.com/fluencelabs/registry.git
synced 2025-04-24 17:52:14 +00:00
83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
module AquaDHT declares *
|
|
|
|
data ClearExpiredResult:
|
|
success: bool
|
|
error: string
|
|
count_keys: u64
|
|
count_values: u64
|
|
|
|
data DhtResult:
|
|
success: bool
|
|
error: string
|
|
|
|
data Key:
|
|
key: string
|
|
peer_id: string
|
|
timestamp_created: u64
|
|
pinned: bool
|
|
weight: u32
|
|
|
|
data Record:
|
|
value: string
|
|
peer_id: string
|
|
set_by: string
|
|
relay_id: []string
|
|
service_id: []string
|
|
timestamp_created: u64
|
|
weight: u32
|
|
|
|
data EvictStaleItem:
|
|
key: Key
|
|
records: []Record
|
|
|
|
data EvictStaleResult:
|
|
success: bool
|
|
error: string
|
|
results: []EvictStaleItem
|
|
|
|
data GetKeyMetadataResult:
|
|
success: bool
|
|
error: string
|
|
key: Key
|
|
|
|
data GetValuesResult:
|
|
success: bool
|
|
error: string
|
|
result: []Record
|
|
|
|
data MergeResult:
|
|
success: bool
|
|
error: string
|
|
result: []Record
|
|
|
|
data PutHostValueResult:
|
|
success: bool
|
|
error: string
|
|
key: string
|
|
value: []Record
|
|
|
|
data RepublishValuesResult:
|
|
success: bool
|
|
error: string
|
|
updated: u64
|
|
|
|
service AquaDHT("aqua-dht"):
|
|
clear_expired(current_timestamp_sec: u64) -> ClearExpiredResult
|
|
clear_host_value(key: string, current_timestamp_sec: u64) -> DhtResult
|
|
evict_stale(current_timestamp_sec: u64) -> EvictStaleResult
|
|
get_key_metadata(key: string, current_timestamp_sec: u64) -> GetKeyMetadataResult
|
|
get_values(key: string, current_timestamp_sec: u64) -> GetValuesResult
|
|
merge(records: [][]Record) -> MergeResult
|
|
merge_hack_get_values(records: []GetValuesResult) -> MergeResult
|
|
merge_two(a: []Record, b: []Record) -> MergeResult
|
|
propagate_host_value(set_host_value: PutHostValueResult, current_timestamp_sec: u64, weight: u32) -> DhtResult
|
|
put_host_value(key: string, value: string, current_timestamp_sec: u64, relay_id: []string, service_id: []string, weight: u32) -> PutHostValueResult
|
|
put_value(key: string, value: string, current_timestamp_sec: u64, relay_id: []string, service_id: []string, weight: u32) -> DhtResult
|
|
register_key(key: string, current_timestamp_sec: u64, pin: bool, weight: u32) -> DhtResult
|
|
renew_host_value(key: string, current_timestamp_sec: u64) -> DhtResult
|
|
republish_key(key: Key, current_timestamp_sec: u64) -> DhtResult
|
|
republish_values(key: string, records: []Record, current_timestamp_sec: u64) -> RepublishValuesResult
|
|
set_expired_timeout(timeout_sec: u64)
|
|
set_host_expired_timeout(timeout_sec: u64)
|
|
set_stale_timeout(timeout_sec: u64)
|