BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "archive_test.go",
  11. "dao_test.go",
  12. "databus_test.go",
  13. "figure_test.go",
  14. "mysql_protect_test.go",
  15. "mysql_report_test.go",
  16. "mysql_test.go",
  17. "notify_test.go",
  18. "redis_test.go",
  19. "search_test.go",
  20. ],
  21. embed = [":go_default_library"],
  22. rundir = ".",
  23. tags = ["automanaged"],
  24. deps = [
  25. "//app/interface/main/dm/conf:go_default_library",
  26. "//app/interface/main/dm/model:go_default_library",
  27. "//library/log:go_default_library",
  28. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "archive.go",
  35. "dao.go",
  36. "databus.go",
  37. "figure.go",
  38. "mysql.go",
  39. "mysql_protect.go",
  40. "mysql_report.go",
  41. "notify.go",
  42. "redis.go",
  43. "search.go",
  44. ],
  45. importpath = "go-common/app/interface/main/dm/dao",
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. deps = [
  49. "//app/interface/main/dm/conf:go_default_library",
  50. "//app/interface/main/dm/model:go_default_library",
  51. "//library/cache/redis:go_default_library",
  52. "//library/database/elastic:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/net/http/blademaster:go_default_library",
  56. "//library/queue/databus:go_default_library",
  57. "//library/stat/prom:go_default_library",
  58. "//library/sync/errgroup:go_default_library",
  59. "//library/xstr:go_default_library",
  60. ],
  61. )
  62. filegroup(
  63. name = "package-srcs",
  64. srcs = glob(["**"]),
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:private"],
  67. )
  68. filegroup(
  69. name = "all-srcs",
  70. srcs = [":package-srcs"],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )