aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/api/api.go')
-rw-r--r--roomserver/api/api.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/roomserver/api/api.go b/roomserver/api/api.go
index bef2bb3f..ebc068ac 100644
--- a/roomserver/api/api.go
+++ b/roomserver/api/api.go
@@ -132,6 +132,15 @@ type RoomserverInternalAPI interface {
response *QueryStateAndAuthChainResponse,
) error
+ // QueryAuthChain returns the entire auth chain for the event IDs given.
+ // The response includes the events in the request.
+ // Omits without error for any missing auth events. There will be no duplicates.
+ QueryAuthChain(
+ ctx context.Context,
+ request *QueryAuthChainRequest,
+ response *QueryAuthChainResponse,
+ ) error
+
// QueryCurrentState retrieves the requested state events. If state events are not found, they will be missing from
// the response.
QueryCurrentState(ctx context.Context, req *QueryCurrentStateRequest, res *QueryCurrentStateResponse) error