es.go 324 B

123456789101112131415
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package parser
  4. import (
  5. "property-household/config"
  6. "git.getensh.com/common/gopkgs/elastic"
  7. )
  8. // 初始化ES
  9. func ElasticHandle(conf *config.Configure) {
  10. elastic.Setup(conf.Elastic.Addrs, conf.Elastic.Sniff)
  11. }