|
@@ -170,10 +170,18 @@ var (
|
|
|
Middleground *middleground.Middleground
|
|
|
Compatible *compatible.Compatible
|
|
|
ResourcesRpc resourcesCenterclient.ResourcesCenter
|
|
|
+ SampleReport SampleReportConfig
|
|
|
)
|
|
|
|
|
|
+// 样例报告
|
|
|
+type SampleReportConfig []struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+ Desc string `json:"desc"`
|
|
|
+}
|
|
|
+
|
|
|
func init() {
|
|
|
util.ReadConfig(&Sysconfig)
|
|
|
+ util.ReadConfig("./sample_report.json", &SampleReport)
|
|
|
if Sysconfig != nil {
|
|
|
//
|
|
|
if Sysconfig.Elasticsearch.Main != nil {
|