summary refs log tree commit diff
path: root/synapse/push/pusher.py
blob: f7c3021fcc2f3a38b6be35b542e5098b54245869 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
from httppusher import HttpPusher
from emailpusher import EmailPusher

PUSHER_TYPES = {
    'http': HttpPusher,
    'email': EmailPusher,
}


def create_pusher(hs, pusherdict):
    if pusherdict['kind'] in PUSHER_TYPES:
        return PUSHER_TYPES[pusherdict['kind']](hs, pusherdict)