add es log

This commit is contained in:
Jay
2019-05-28 11:17:22 +08:00
parent a7cb7cf8cf
commit 9ffbdfceca
7 changed files with 117 additions and 29 deletions
+5 -3
View File
@@ -43,9 +43,11 @@ type Config struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
} `yaml:"redis"`
Elasticsearch struct{
Host string `yaml:"host"`
Index string `yaml:"index"`
Elasticsearch struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
Host string `yaml:"host"`
Index string `yaml:"index"`
} `yaml:"elasticsearch"`
}