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