es.go 321 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. "cp-system-management/config"
  6. "github.com/jaryhe/gopkgs/elastic"
  7. )
  8. // 初始化ES
  9. func ElasticHandle(conf *config.Configure) {
  10. elastic.Setup(conf.Elastic.Addrs, conf.Elastic.Sniff)
  11. }