BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "app_multiple_databus_test.go",
  11. "app_single_test.go",
  12. "config_offset_test.go",
  13. "dao_test.go",
  14. "es_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/job/main/search/conf:go_default_library",
  21. "//app/job/main/search/model:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. ],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [
  28. "app_databus.go",
  29. "app_multiple.go",
  30. "app_multiple_databus.go",
  31. "app_single.go",
  32. "config_asset.go",
  33. "config_attr.go",
  34. "config_business.go",
  35. "config_offset.go",
  36. "dao.go",
  37. "es.go",
  38. "hbase.go",
  39. "sms.go",
  40. ],
  41. importpath = "go-common/app/job/main/search/dao",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/job/main/search/conf:go_default_library",
  46. "//app/job/main/search/model:go_default_library",
  47. "//library/database/sql:go_default_library",
  48. "//library/log:go_default_library",
  49. "//library/log/infoc:go_default_library",
  50. "//library/queue/databus:go_default_library",
  51. "//library/stat/prom:go_default_library",
  52. "//library/time:go_default_library",
  53. "//library/xstr:go_default_library",
  54. "//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [
  66. ":package-srcs",
  67. "//app/job/main/search/dao/base:all-srcs",
  68. "//app/job/main/search/dao/business:all-srcs",
  69. ],
  70. tags = ["automanaged"],
  71. visibility = ["//visibility:public"],
  72. )