BUILD 2.6 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. "alert_test.go",
  11. "consumer_test.go",
  12. "monitor_test.go",
  13. "service_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/interface/openplatform/monitor-end/conf:go_default_library",
  20. "//app/interface/openplatform/monitor-end/model:go_default_library",
  21. "//app/interface/openplatform/monitor-end/model/kafka:go_default_library",
  22. "//app/interface/openplatform/monitor-end/model/monitor:go_default_library",
  23. "//library/cache/redis:go_default_library",
  24. "//library/container/pool:go_default_library",
  25. "//library/database/sql:go_default_library",
  26. "//library/log/infoc:go_default_library",
  27. "//library/time:go_default_library",
  28. "//vendor/github.com/Shopify/sarama:go_default_library",
  29. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  30. ],
  31. )
  32. go_library(
  33. name = "go_default_library",
  34. srcs = [
  35. "alert.go",
  36. "consumer.go",
  37. "infoc.go",
  38. "mail.go",
  39. "monitor.go",
  40. "service.go",
  41. ],
  42. importpath = "go-common/app/interface/openplatform/monitor-end/service",
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. deps = [
  46. "//app/interface/openplatform/monitor-end/conf:go_default_library",
  47. "//app/interface/openplatform/monitor-end/dao:go_default_library",
  48. "//app/interface/openplatform/monitor-end/model:go_default_library",
  49. "//app/interface/openplatform/monitor-end/model/kafka:go_default_library",
  50. "//app/interface/openplatform/monitor-end/model/monitor:go_default_library",
  51. "//app/interface/openplatform/monitor-end/model/prom:go_default_library",
  52. "//library/ecode:go_default_library",
  53. "//library/log:go_default_library",
  54. "//library/log/infoc:go_default_library",
  55. "//vendor/github.com/Shopify/sarama:go_default_library",
  56. "//vendor/github.com/bsm/sarama-cluster:go_default_library",
  57. "//vendor/github.com/json-iterator/go:go_default_library",
  58. "//vendor/github.com/scorredoira/email:go_default_library",
  59. ],
  60. )
  61. filegroup(
  62. name = "package-srcs",
  63. srcs = glob(["**"]),
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:private"],
  66. )
  67. filegroup(
  68. name = "all-srcs",
  69. srcs = [":package-srcs"],
  70. tags = ["automanaged"],
  71. visibility = ["//visibility:public"],
  72. )