示例#1
0
import configparser
import paths

parser = configparser.SafeConfigParser()
default_file = 'default.ini'
config_file = parser.read(paths.settings_file(default_file))


def read_kafka_config():
    return parser['kafka']


def read_redis_config():
    return parser['redis']
示例#2
0
def read_elasticsearch_config():
    parser.read(paths.settings_file(default_file))
    return parser['elasticsearch']
示例#3
0
def read_kafka_config():
    parser.read(paths.settings_file(default_file))
    return parser['kafka']
示例#4
0
def read_journal_data_config():
    parser.read(paths.settings_file(default_file))
    return parser['journal-data']