Exemplo n.º 1
0
func SavaJettyConf(ConfMap mxj.Map) {
	JettyFromPath := ConfMap["Jetty"].(map[string]interface{})["From"].(string)
	JettyToPath := ConfMap["Jetty"].(map[string]interface{})["To"].(map[string]interface{})

	for port, path := range JettyToPath {
		confJetty := confJetty(JettyFromPath, port)
		prf("write jettyconf to %s...\n", JettyFromPath)
		gd.StringToFilePath(path.(string), confJetty)
	}
}
Exemplo n.º 2
0
func SavaAmqConf(ConfMap mxj.Map) {
	AmqFromPath := ConfMap["Amq"].(map[string]interface{})["From"].(string)
	AmqToPath := ConfMap["Amq"].(map[string]interface{})["To"].(string)
	confPolicyEntryPath := ConfMap["Amq"].(map[string]interface{})["PolicyEntry"].(string)
	confLevelDBPath := ConfMap["Amq"].(map[string]interface{})["LevelDB"].(string)

	confAmq := confAmq(AmqFromPath, confPolicyEntryPath, confLevelDBPath)

	prf("write amqconf to %s...", AmqFromPath)
	gd.StringToFilePath(AmqToPath, confAmq)
}