2020-05-22 15:21:54 +02:00
|
|
|
from typing import Dict
|
|
|
|
|
2020-01-17 11:27:19 +01:00
|
|
|
import twisted.internet
|
|
|
|
|
2016-08-08 17:34:07 +02:00
|
|
|
import synapse.api.auth
|
2018-05-17 12:34:28 +02:00
|
|
|
import synapse.config.homeserver
|
2020-01-30 17:42:11 +01:00
|
|
|
import synapse.crypto.keyring
|
2020-02-26 16:33:26 +01:00
|
|
|
import synapse.federation.federation_server
|
2019-03-13 21:02:56 +01:00
|
|
|
import synapse.federation.sender
|
2017-10-17 20:46:56 +02:00
|
|
|
import synapse.federation.transport.client
|
2016-07-19 11:21:42 +02:00
|
|
|
import synapse.handlers
|
|
|
|
import synapse.handlers.auth
|
2017-11-29 12:48:43 +01:00
|
|
|
import synapse.handlers.deactivate_account
|
2016-07-19 11:21:42 +02:00
|
|
|
import synapse.handlers.device
|
2016-08-01 19:02:07 +02:00
|
|
|
import synapse.handlers.e2e_keys
|
2019-02-27 22:03:14 +01:00
|
|
|
import synapse.handlers.message
|
2020-01-17 11:27:19 +01:00
|
|
|
import synapse.handlers.presence
|
2020-05-08 14:30:40 +02:00
|
|
|
import synapse.handlers.register
|
2018-08-22 11:57:54 +02:00
|
|
|
import synapse.handlers.room
|
|
|
|
import synapse.handlers.room_member
|
2017-11-29 15:10:46 +01:00
|
|
|
import synapse.handlers.set_password
|
2019-11-01 15:07:44 +01:00
|
|
|
import synapse.http.client
|
2020-07-15 16:27:35 +02:00
|
|
|
import synapse.http.matrixfederationclient
|
2020-01-17 11:27:19 +01:00
|
|
|
import synapse.notifier
|
2020-05-14 15:01:39 +02:00
|
|
|
import synapse.push.pusherpool
|
2020-01-30 17:42:11 +01:00
|
|
|
import synapse.replication.tcp.client
|
2020-04-06 10:58:42 +02:00
|
|
|
import synapse.replication.tcp.handler
|
2017-11-21 12:08:08 +01:00
|
|
|
import synapse.rest.media.v1.media_repository
|
2018-05-17 12:34:28 +02:00
|
|
|
import synapse.server_notices.server_notices_manager
|
2018-05-17 18:35:31 +02:00
|
|
|
import synapse.server_notices.server_notices_sender
|
2016-07-19 11:21:42 +02:00
|
|
|
import synapse.state
|
2017-11-29 12:48:43 +01:00
|
|
|
import synapse.storage
|
2020-04-29 13:30:36 +02:00
|
|
|
from synapse.events.builder import EventBuilderFactory
|
2020-07-27 15:10:53 +02:00
|
|
|
from synapse.handlers.typing import FollowerTypingHandler
|
2020-05-22 15:21:54 +02:00
|
|
|
from synapse.replication.tcp.streams import Stream
|
2017-11-29 12:48:43 +01:00
|
|
|
|
2016-07-19 11:21:42 +02:00
|
|
|
class HomeServer(object):
|
2018-05-17 12:34:28 +02:00
|
|
|
@property
|
|
|
|
def config(self) -> synapse.config.homeserver.HomeServerConfig:
|
|
|
|
pass
|
2020-01-30 17:42:11 +01:00
|
|
|
@property
|
|
|
|
def hostname(self) -> str:
|
|
|
|
pass
|
2016-08-08 17:34:07 +02:00
|
|
|
def get_auth(self) -> synapse.api.auth.Auth:
|
|
|
|
pass
|
2016-07-19 11:21:42 +02:00
|
|
|
def get_auth_handler(self) -> synapse.handlers.auth.AuthHandler:
|
|
|
|
pass
|
|
|
|
def get_datastore(self) -> synapse.storage.DataStore:
|
|
|
|
pass
|
|
|
|
def get_device_handler(self) -> synapse.handlers.device.DeviceHandler:
|
|
|
|
pass
|
2016-08-01 19:02:07 +02:00
|
|
|
def get_e2e_keys_handler(self) -> synapse.handlers.e2e_keys.E2eKeysHandler:
|
|
|
|
pass
|
2016-07-19 11:21:42 +02:00
|
|
|
def get_handlers(self) -> synapse.handlers.Handlers:
|
|
|
|
pass
|
|
|
|
def get_state_handler(self) -> synapse.state.StateHandler:
|
|
|
|
pass
|
2018-01-27 10:15:45 +01:00
|
|
|
def get_state_resolution_handler(self) -> synapse.state.StateResolutionHandler:
|
|
|
|
pass
|
2019-11-01 15:07:44 +01:00
|
|
|
def get_simple_http_client(self) -> synapse.http.client.SimpleHttpClient:
|
|
|
|
"""Fetch an HTTP client implementation which doesn't do any blacklisting
|
|
|
|
or support any HTTP_PROXY settings"""
|
|
|
|
pass
|
|
|
|
def get_proxied_http_client(self) -> synapse.http.client.SimpleHttpClient:
|
|
|
|
"""Fetch an HTTP client implementation which doesn't do any blacklisting
|
|
|
|
but does support HTTP_PROXY settings"""
|
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_deactivate_account_handler(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.handlers.deactivate_account.DeactivateAccountHandler:
|
2017-11-29 12:48:43 +01:00
|
|
|
pass
|
2018-05-17 10:01:09 +02:00
|
|
|
def get_room_creation_handler(self) -> synapse.handlers.room.RoomCreationHandler:
|
|
|
|
pass
|
2018-08-22 11:57:54 +02:00
|
|
|
def get_room_member_handler(self) -> synapse.handlers.room_member.RoomMemberHandler:
|
|
|
|
pass
|
2020-07-14 13:36:23 +02:00
|
|
|
def get_room_shutdown_handler(self) -> synapse.handlers.room.RoomShutdownHandler:
|
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_event_creation_handler(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.handlers.message.EventCreationHandler:
|
2018-05-17 12:34:28 +02:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_set_password_handler(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.handlers.set_password.SetPasswordHandler:
|
2017-11-29 15:10:46 +01:00
|
|
|
pass
|
2019-03-13 21:02:56 +01:00
|
|
|
def get_federation_sender(self) -> synapse.federation.sender.FederationSender:
|
2017-10-17 20:46:56 +02:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_federation_transport_client(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.federation.transport.client.TransportLayerClient:
|
2017-10-17 20:46:56 +02:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_media_repository_resource(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.rest.media.v1.media_repository.MediaRepositoryResource:
|
2017-11-21 12:08:08 +01:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_media_repository(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.rest.media.v1.media_repository.MediaRepository:
|
2017-11-21 12:08:08 +01:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_server_notices_manager(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.server_notices.server_notices_manager.ServerNoticesManager:
|
2018-05-17 12:34:28 +02:00
|
|
|
pass
|
2019-06-20 11:32:02 +02:00
|
|
|
def get_server_notices_sender(
|
2019-10-31 16:43:24 +01:00
|
|
|
self,
|
2019-06-20 11:32:02 +02:00
|
|
|
) -> synapse.server_notices.server_notices_sender.ServerNoticesSender:
|
2018-05-17 18:35:31 +02:00
|
|
|
pass
|
2020-01-17 11:27:19 +01:00
|
|
|
def get_notifier(self) -> synapse.notifier.Notifier:
|
|
|
|
pass
|
2020-04-22 23:39:04 +02:00
|
|
|
def get_presence_handler(self) -> synapse.handlers.presence.BasePresenceHandler:
|
2020-01-17 11:27:19 +01:00
|
|
|
pass
|
|
|
|
def get_clock(self) -> synapse.util.Clock:
|
|
|
|
pass
|
|
|
|
def get_reactor(self) -> twisted.internet.base.ReactorBase:
|
|
|
|
pass
|
2020-01-30 17:42:11 +01:00
|
|
|
def get_keyring(self) -> synapse.crypto.keyring.Keyring:
|
|
|
|
pass
|
|
|
|
def get_tcp_replication(
|
|
|
|
self,
|
2020-04-06 10:58:42 +02:00
|
|
|
) -> synapse.replication.tcp.handler.ReplicationCommandHandler:
|
|
|
|
pass
|
|
|
|
def get_replication_data_handler(
|
|
|
|
self,
|
|
|
|
) -> synapse.replication.tcp.client.ReplicationDataHandler:
|
2020-01-30 17:42:11 +01:00
|
|
|
pass
|
2020-02-26 16:33:26 +01:00
|
|
|
def get_federation_registry(
|
|
|
|
self,
|
|
|
|
) -> synapse.federation.federation_server.FederationHandlerRegistry:
|
|
|
|
pass
|
2020-02-07 14:56:38 +01:00
|
|
|
def is_mine_id(self, domain_id: str) -> bool:
|
|
|
|
pass
|
2020-03-30 17:37:24 +02:00
|
|
|
def get_instance_id(self) -> str:
|
|
|
|
pass
|
2020-04-29 17:23:08 +02:00
|
|
|
def get_instance_name(self) -> str:
|
|
|
|
pass
|
2020-04-29 13:30:36 +02:00
|
|
|
def get_event_builder_factory(self) -> EventBuilderFactory:
|
|
|
|
pass
|
|
|
|
def get_storage(self) -> synapse.storage.Storage:
|
|
|
|
pass
|
2020-05-08 14:30:40 +02:00
|
|
|
def get_registration_handler(self) -> synapse.handlers.register.RegistrationHandler:
|
|
|
|
pass
|
|
|
|
def get_macaroon_generator(self) -> synapse.handlers.auth.MacaroonGenerator:
|
|
|
|
pass
|
2020-05-14 15:01:39 +02:00
|
|
|
def get_pusherpool(self) -> synapse.push.pusherpool.PusherPool:
|
|
|
|
pass
|
2020-05-22 15:21:54 +02:00
|
|
|
def get_replication_streams(self) -> Dict[str, Stream]:
|
|
|
|
pass
|
2020-07-15 16:27:35 +02:00
|
|
|
def get_http_client(
|
|
|
|
self,
|
|
|
|
) -> synapse.http.matrixfederationclient.MatrixFederationHttpClient:
|
|
|
|
pass
|
2020-07-16 16:12:54 +02:00
|
|
|
def should_send_federation(self) -> bool:
|
|
|
|
pass
|
2020-07-27 15:10:53 +02:00
|
|
|
def get_typing_handler(self) -> FollowerTypingHandler:
|
|
|
|
pass
|