diff options
author | devonh <devon.dmytro@gmail.com> | 2022-11-18 00:29:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 00:29:23 +0000 |
commit | a8e7ffc7ab147ebced766da8e0e1ebb1d75f846a (patch) | |
tree | 644a90bcf421b3f7a67c860484c991870e697e24 /federationapi/api | |
parent | ffd8e21ce52bbf542e0e2ed74f032af6a163c56c (diff) |
Add p2p wakeup broadcast handling to pinecone demos (#2841)
Adds wakeup broadcast handling to the pinecone demos.
This will reset their blacklist status and interrupt any ongoing
federation queue backoffs currently in progress for this peer.
The end result is that any queued events will quickly be sent to the
peer if they had disconnected while attempting to send events to them.
Diffstat (limited to 'federationapi/api')
-rw-r--r-- | federationapi/api/api.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/federationapi/api/api.go b/federationapi/api/api.go index f4be53b9..50d0339e 100644 --- a/federationapi/api/api.go +++ b/federationapi/api/api.go @@ -30,6 +30,12 @@ type FederationInternalAPI interface { request *PerformBroadcastEDURequest, response *PerformBroadcastEDUResponse, ) error + + PerformWakeupServers( + ctx context.Context, + request *PerformWakeupServersRequest, + response *PerformWakeupServersResponse, + ) error } type ClientFederationAPI interface { @@ -214,6 +220,13 @@ type PerformBroadcastEDURequest struct { type PerformBroadcastEDUResponse struct { } +type PerformWakeupServersRequest struct { + ServerNames []gomatrixserverlib.ServerName `json:"server_names"` +} + +type PerformWakeupServersResponse struct { +} + type InputPublicKeysRequest struct { Keys map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult `json:"keys"` } |