mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
some more stuff
This commit is contained in:
parent
77f912721a
commit
087efc0e34
5 changed files with 145 additions and 2 deletions
|
@ -2,6 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
|
@ -61,6 +62,12 @@ type FederationInternalAPI interface {
|
|||
response *QueryJoinedHostServerNamesInRoomResponse,
|
||||
) error
|
||||
|
||||
QueryEventsFromFederation(
|
||||
ctx context.Context,
|
||||
request *QueryEventsFromFederationRequest,
|
||||
response *QueryEventsFromFederationResponse,
|
||||
) error
|
||||
|
||||
QueryEventAuthFromFederation(
|
||||
ctx context.Context,
|
||||
request *QueryEventAuthFromFederationRequest,
|
||||
|
@ -213,6 +220,15 @@ type QueryJoinedHostServerNamesInRoomResponse struct {
|
|||
ServerNames []gomatrixserverlib.ServerName `json:"server_names"`
|
||||
}
|
||||
|
||||
type QueryEventsFromFederationRequest struct {
|
||||
RoomID string `json:"room_id"`
|
||||
EventIDs []string `json:"event_ids"`
|
||||
}
|
||||
|
||||
type QueryEventsFromFederationResponse struct {
|
||||
Events []json.RawMessage `json:"events"`
|
||||
}
|
||||
|
||||
type QueryEventAuthFromFederationRequest struct {
|
||||
RoomID string `json:"room_id"`
|
||||
EventID string `json:"event_id"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue