elastic.go 464 B

1234567891011121314151617181920
  1. package helpers
  2. //
  3. //import (
  4. // "git-pd.megvii-inc.com/slg-service/pms/conf"
  5. // "git-pd.megvii-inc.com/srgbase/goframework/base"
  6. //)
  7. //
  8. //var ElasticClient *base.ElasticClient
  9. //
  10. //func init() {
  11. // var err error
  12. // ElasticClient, err = base.NewElasticClient(base.ElasticClientConfig{
  13. // Addr: conf.Conf.Elastic.Addr,
  14. // User: conf.Conf.Elastic.User,
  15. // Password: conf.Conf.Elastic.Pass,
  16. // })
  17. // if err != nil {
  18. // base.PanicLogger(nil, err)
  19. // }
  20. //}