aboutsummaryrefslogtreecommitdiff
path: root/roomserver/inthttp/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/inthttp/client.go')
-rw-r--r--roomserver/inthttp/client.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/roomserver/inthttp/client.go b/roomserver/inthttp/client.go
index 24a82adf..f5b66ca6 100644
--- a/roomserver/inthttp/client.go
+++ b/roomserver/inthttp/client.go
@@ -31,6 +31,7 @@ const (
RoomserverPerformLeavePath = "/roomserver/performLeave"
RoomserverPerformBackfillPath = "/roomserver/performBackfill"
RoomserverPerformPublishPath = "/roomserver/performPublish"
+ RoomserverPerformForgetPath = "/roomserver/performForget"
// Query operations
RoomserverQueryLatestEventsAndStatePath = "/roomserver/queryLatestEventsAndState"
@@ -492,3 +493,12 @@ func (h *httpRoomserverInternalAPI) QueryServerBannedFromRoom(
apiURL := h.roomserverURL + RoomserverQueryServerBannedFromRoomPath
return httputil.PostJSON(ctx, span, h.httpClient, apiURL, req, res)
}
+
+func (h *httpRoomserverInternalAPI) PerformForget(ctx context.Context, req *api.PerformForgetRequest, res *api.PerformForgetResponse) error {
+ span, ctx := opentracing.StartSpanFromContext(ctx, "PerformForget")
+ defer span.Finish()
+
+ apiURL := h.roomserverURL + RoomserverPerformForgetPath
+ return httputil.PostJSON(ctx, span, h.httpClient, apiURL, req, res)
+
+}