mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-07 10:02:11 -04:00
Start creating a module to do generic notifications (just prints them to stdout currently!)
This commit is contained in:
parent
493055731e
commit
74c3879760
12 changed files with 449 additions and 3 deletions
|
@ -36,6 +36,7 @@ from synapse.util.lockutils import LockManager
|
|||
from synapse.streams.events import EventSources
|
||||
from synapse.api.ratelimiting import Ratelimiter
|
||||
from synapse.crypto.keyring import Keyring
|
||||
from synapse.push.pusherpool import PusherPool
|
||||
|
||||
|
||||
class BaseHomeServer(object):
|
||||
|
@ -82,6 +83,7 @@ class BaseHomeServer(object):
|
|||
'ratelimiter',
|
||||
'keyring',
|
||||
'event_validator',
|
||||
'pusherpool'
|
||||
]
|
||||
|
||||
def __init__(self, hostname, **kwargs):
|
||||
|
@ -228,6 +230,9 @@ class HomeServer(BaseHomeServer):
|
|||
def build_event_validator(self):
|
||||
return EventValidator(self)
|
||||
|
||||
def build_pusherpool(self):
|
||||
return PusherPool(self)
|
||||
|
||||
def register_servlets(self):
|
||||
""" Register all servlets associated with this HomeServer.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue