summary refs log tree commit diff
path: root/synapse/server.pyi
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-21 11:08:08 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-22 16:19:49 +0000
commite1fd4751de8e96907ea97afaf91525e68ce22227 (patch)
treef7b2374e66930e40e0bf00a96f61e129a931dee4 /synapse/server.pyi
parentMerge pull request #2700 from matrix-org/rav/worker_docs (diff)
downloadsynapse-e1fd4751de8e96907ea97afaf91525e68ce22227.tar.xz
Build MediaRepositoryResource as a homeserver dependency
This avoids the scenario where we have four different PreviewUrlResources
configured on a single app, each of which have their own caches and cache
clearing jobs.
Diffstat (limited to '')
-rw-r--r--synapse/server.pyi7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/server.pyi b/synapse/server.pyi
index e8c0386b7f..3064a497eb 100644
--- a/synapse/server.pyi
+++ b/synapse/server.pyi
@@ -5,6 +5,7 @@ import synapse.handlers
 import synapse.handlers.auth
 import synapse.handlers.device
 import synapse.handlers.e2e_keys
+import synapse.rest.media.v1.media_repository
 import synapse.storage
 import synapse.state
 
@@ -35,3 +36,9 @@ class HomeServer(object):
 
     def get_federation_transport_client(self) -> synapse.federation.transport.client.TransportLayerClient:
         pass
+
+    def get_media_repository_resource(self) -> synapse.rest.media.v1.media_repository.MediaRepositoryResource:
+        pass
+
+    def get_media_repository(self) -> synapse.rest.media.v1.media_repository.MediaRepository:
+        pass