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