コード例 #1
0
def _get_rabbitmq_rest_client():
    config = app.config['BROKER']
    return RabbitMQRestClient.create(host=config['host'],
                                     https=config['https'],
                                     username=config['username'],
                                     password=config['password'],
                                     verify=config.get('cert_path') or False)
コード例 #2
0
def _get_rabbitmq_rest_client(config):
    return RabbitMQRestClient.create(
        host=config['host'],
        https=config['https'],
        username=config.get('username'),
        password=config.get('password'),
        verify=config.get('cert_path') or False,
        retry=config['retry']
    )