fmt.Println("TruncatedAt :",shardGroup.TruncatedAt)
//fmt.Println(shardGroup.ID,shardGroup.StartTime,shardGroup.EndTime)
// DeletedAt,Shards , TruncatedAt
}
//fmt.Println(rPolicy.Subscriptions)
fmt.Println("--------------Subscriptions----------------")
for subsIdx,subInfo := range rPolicy.Subscriptions {
//fmt.Println(subInfo)
fmt.Println("subsIdx =",subsIdx)
fmt.Println("Name :",subInfo.Name)
fmt.Println("Mode :",subInfo.Mode)
fmt.Println("Destinations :",subInfo.Destinations)
}
}
fmt.Println("=======================")
}
fmt.Println("Users :")
fmt.Println(cacheData.Users)
fmt.Println(cacheData.MaxShardGroupID)
fmt.Println(cacheData.MaxShardID)
return nil
}
func main() {
argsWithProg := os.Args
if(len(argsWithProg) < 2) {
fmt.Println("usage : ",argsWithProg[0]," configFile")
return
}
metaFile := os.Args[1]
fmt.Println(argsWithProg)
fmt.Println(metaFile)
Load(metaFile)
}
好,就这些了,希望对你有帮助。