mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-02 23:52:00 +00:00
11 lines
221 B
Python
11 lines
221 B
Python
from httppusher import HttpPusher
|
|
|
|
PUSHER_TYPES = {
|
|
'http': HttpPusher
|
|
}
|
|
|
|
|
|
def create_pusher(hs, pusherdict):
|
|
if pusherdict['kind'] in PUSHER_TYPES:
|
|
return PUSHER_TYPES[pusherdict['kind']](hs, pusherdict)
|