Exemple #1
0
def get_redis(name=None):
    p = instance.getPlugins('redis')[0]
    if not name:
        return p.getElement()
    return p.getElement(name)
Exemple #2
0
def get_flask():
    p = instance.getPlugins('flask')[0]
    return p
Exemple #3
0
def get_qpid_queue(name=None):
    p = instance.getPlugins('qpid')[0]
    return p.getElement(name)
Exemple #4
0
def get_kafka_topic(name=None):
    p = instance.getPlugins('kafka')[0]
    return p.getElement(name)
Exemple #5
0
def get_mongodb(name=None):
    p = instance.getPlugins('mongodb')[0]
    return p.getElement()