Skip to main content

Module api_announcements

Module api_announcements 

Source
Expand description

Federation Api announcement handling

StructsΒ§

ApiAnnouncementKey
ApiAnnouncementPrefix

EnumsΒ§

FetchApiAnnouncementsError πŸ”’
Why a peer’s API announcements were not accepted.

FunctionsΒ§

fetch_api_announcements_from_at_least_num_of_peers πŸ”’
Fetch responses from at least num_responses_required of peers.
get_api_urls
Returns a list of all peers and their respective API URLs taking into account guardian metadata and API announcements overwriting the URLs contained in the original configuration.
run_api_announcement_refresh_task πŸ”’
Fetches API URL announcements from guardians, validates them and updates the DB if any new more upt to date ones are found.
store_api_announcement_updates πŸ”’
store_api_announcements_updates_from_peers πŸ”’

Type AliasesΒ§

PeersSignedApiAnnouncements πŸ”’