def RedisConfig(): k = ['host', 'port', 'passwd'] return ConfigReader.read_section_key('conf', 'base.cfg', 'redis', *k)
def GitConfig(): k = ['path', 'filepath'] return ConfigReader.read_section_key('conf', 'base.cfg', 'git', *k)
def FileConfig(): k = ['path'] return ConfigReader.read_section_key('conf', 'base.cfg', 'file', *k)
def DatabaseConfig(): k = ['host', 'port', 'user', 'passwd'] return ConfigReader.read_section_key('conf', 'base.cfg', 'database', *k)
def MonitorConfig(): k = ['keys', 'hot_count'] cfg = ConfigReader.read_section_key('conf', 'base.cfg', 'monitor', *k) cfg["keys"] = cfg["keys"].split(",") return cfg
def QYWXConfig(): k = ['tokens'] return ConfigReader.read_section_key('conf', 'base.cfg', 'qywx', *k).split(",")