2020-01-17 05:27:19 -05:00
|
|
|
import twisted.internet
|
|
|
|
|
2016-08-08 11:34:07 -04:00
|
|
|
import synapse.api.auth
|
2018-05-17 06:34:28 -04:00
|
|
|
import synapse.config.homeserver
|
2020-01-30 11:42:11 -05:00
|
|
|
import synapse.crypto.keyring
|
2020-02-26 10:33:26 -05:00
|
|
|
import synapse.federation.federation_server
|
2019-03-13 16:02:56 -04:00
|
|
|
import synapse.federation.sender
|
2017-10-17 14:46:56 -04:00
|
|
|
import synapse.federation.transport.client
|
2016-07-19 05:21:42 -04:00
|
|
|
import synapse.handlers
|
|
|
|
import synapse.handlers.auth
|
2017-11-29 06:48:43 -05:00
|
|
|
import synapse.handlers.deactivate_account
|
2016-07-19 05:21:42 -04:00
|
|
|
import synapse.handlers.device
|
2016-08-01 13:02:07 -04:00
|
|
|
import synapse.handlers.e2e_keys
|
2019-02-27 16:03:14 -05:00
|
|
|
import synapse.handlers.message
|
2020-01-17 05:27:19 -05:00
|
|
|
import synapse.handlers.presence
|
2018-08-22 05:57:54 -04:00
|
|
|
import synapse.handlers.room
|
|
|
|
import synapse.handlers.room_member
|
2017-11-29 09:10:46 -05:00
|
|
|
import synapse.handlers.set_password
|
2019-11-01 10:07:44 -04:00
|
|
|
import synapse.http.client
|
2020-01-17 05:27:19 -05:00
|
|
|
import synapse.notifier
|
2020-01-30 11:42:11 -05:00
|
|
|
import synapse.replication.tcp.client
|
2017-11-21 06:08:08 -05:00
|
|
|
import synapse.rest.media.v1.media_repository
|
2018-05-17 06:34:28 -04:00
|
|
|
import synapse.server_notices.server_notices_manager
|
2018-05-17 12:35:31 -04:00
|
|
|
import synapse.server_notices.server_notices_sender
|
2016-07-19 05:21:42 -04:00
|
|
|
import synapse.state
|
2017-11-29 06:48:43 -05:00
|
|
|
import synapse.storage
|
|
|
|
|
2016-07-19 05:21:42 -04:00
|
|
|
class HomeServer(object):
|
2018-05-17 06:34:28 -04:00
|
|
|
@property
|
|
|
|
def config(self) -> synapse.config.homeserver.HomeServerConfig:
|
|
|
|
pass
|
2020-01-30 11:42:11 -05:00
|
|
|
@property
|
|
|
|
def hostname(self) -> str:
|
|
|
|
pass
|
2016-08-08 11:34:07 -04:00
|
|
|
def get_auth(self) -> synapse.api.auth.Auth:
|
|
|
|
pass
|
2016-07-19 05:21:42 -04: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 13:02:07 -04:00
|
|
|
def get_e2e_keys_handler(self) -> synapse.handlers.e2e_keys.E2eKeysHandler:
|
|
|
|
pass
|
2016-07-19 05:21:42 -04:00
|
|
|
def get_handlers(self) -> synapse.handlers.Handlers:
|
|
|
|
pass
|
|
|
|
def get_state_handler(self) -> synapse.state.StateHandler:
|
|
|
|
pass
|
2018-01-27 04:15:45 -05:00
|
|
|
def get_state_resolution_handler(self) -> synapse.state.StateResolutionHandler:
|
|
|
|
pass
|
2019-11-01 10:07:44 -04: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 05:32:02 -04:00
|
|
|
def get_deactivate_account_handler(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.handlers.deactivate_account.DeactivateAccountHandler:
|
2017-11-29 06:48:43 -05:00
|
|
|
pass
|
2018-05-17 04:01:09 -04:00
|
|
|
def get_room_creation_handler(self) -> synapse.handlers.room.RoomCreationHandler:
|
|
|
|
pass
|
2018-08-22 05:57:54 -04:00
|
|
|
def get_room_member_handler(self) -> synapse.handlers.room_member.RoomMemberHandler:
|
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_event_creation_handler(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.handlers.message.EventCreationHandler:
|
2018-05-17 06:34:28 -04:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_set_password_handler(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.handlers.set_password.SetPasswordHandler:
|
2017-11-29 09:10:46 -05:00
|
|
|
pass
|
2019-03-13 16:02:56 -04:00
|
|
|
def get_federation_sender(self) -> synapse.federation.sender.FederationSender:
|
2017-10-17 14:46:56 -04:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_federation_transport_client(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.federation.transport.client.TransportLayerClient:
|
2017-10-17 14:46:56 -04:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_media_repository_resource(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.rest.media.v1.media_repository.MediaRepositoryResource:
|
2017-11-21 06:08:08 -05:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_media_repository(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.rest.media.v1.media_repository.MediaRepository:
|
2017-11-21 06:08:08 -05:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_server_notices_manager(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.server_notices.server_notices_manager.ServerNoticesManager:
|
2018-05-17 06:34:28 -04:00
|
|
|
pass
|
2019-06-20 05:32:02 -04:00
|
|
|
def get_server_notices_sender(
|
2019-10-31 11:43:24 -04:00
|
|
|
self,
|
2019-06-20 05:32:02 -04:00
|
|
|
) -> synapse.server_notices.server_notices_sender.ServerNoticesSender:
|
2018-05-17 12:35:31 -04:00
|
|
|
pass
|
2020-01-17 05:27:19 -05:00
|
|
|
def get_notifier(self) -> synapse.notifier.Notifier:
|
|
|
|
pass
|
|
|
|
def get_presence_handler(self) -> synapse.handlers.presence.PresenceHandler:
|
|
|
|
pass
|
|
|
|
def get_clock(self) -> synapse.util.Clock:
|
|
|
|
pass
|
|
|
|
def get_reactor(self) -> twisted.internet.base.ReactorBase:
|
|
|
|
pass
|
2020-01-30 11:42:11 -05:00
|
|
|
def get_keyring(self) -> synapse.crypto.keyring.Keyring:
|
|
|
|
pass
|
|
|
|
def get_tcp_replication(
|
|
|
|
self,
|
|
|
|
) -> synapse.replication.tcp.client.ReplicationClientHandler:
|
|
|
|
pass
|
2020-02-26 10:33:26 -05:00
|
|
|
def get_federation_registry(
|
|
|
|
self,
|
|
|
|
) -> synapse.federation.federation_server.FederationHandlerRegistry:
|
|
|
|
pass
|
2020-02-07 08:56:38 -05:00
|
|
|
def is_mine_id(self, domain_id: str) -> bool:
|
|
|
|
pass
|
2020-03-30 11:37:24 -04:00
|
|
|
def get_instance_id(self) -> str:
|
|
|
|
pass
|