BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = [
  22. "archive_test.go",
  23. "dao_test.go",
  24. "es_test.go",
  25. "log_test.go",
  26. "mng_test.go",
  27. "mng_v2_test.go",
  28. "query_extra_test.go",
  29. "query_test.go",
  30. ],
  31. embed = [":go_default_library"],
  32. rundir = ".",
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/admin/main/search/conf:go_default_library",
  36. "//app/admin/main/search/model:go_default_library",
  37. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  38. "//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
  39. ],
  40. )
  41. go_library(
  42. name = "go_default_library",
  43. srcs = [
  44. "archive.go",
  45. "dao.go",
  46. "es.go",
  47. "log.go",
  48. "mng.go",
  49. "mng_v2.go",
  50. "query.go",
  51. "query_extra.go",
  52. ],
  53. importpath = "go-common/app/admin/main/search/dao",
  54. tags = ["automanaged"],
  55. deps = [
  56. "//app/admin/main/search/conf:go_default_library",
  57. "//app/admin/main/search/model:go_default_library",
  58. "//library/database/sql:go_default_library",
  59. "//library/ecode:go_default_library",
  60. "//library/log:go_default_library",
  61. "//library/net/http/blademaster:go_default_library",
  62. "//library/stat/prom:go_default_library",
  63. "//library/sync/errgroup:go_default_library",
  64. "//vendor/github.com/pkg/errors:go_default_library",
  65. "//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
  66. ],
  67. )