BUILD 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "cache.go",
  11. "databus.go",
  12. "handler.go",
  13. "handler_resource.go",
  14. "handler_task.go",
  15. "monitor.go",
  16. "report.go",
  17. "service.go",
  18. "task_job.go",
  19. "task_log.go",
  20. "weight.go",
  21. ],
  22. importpath = "go-common/app/job/main/aegis/service",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/job/main/aegis/conf:go_default_library",
  27. "//app/job/main/aegis/dao:go_default_library",
  28. "//app/job/main/aegis/dao/email:go_default_library",
  29. "//app/job/main/aegis/dao/monitor:go_default_library",
  30. "//app/job/main/aegis/model:go_default_library",
  31. "//app/job/main/aegis/model/monitor:go_default_library",
  32. "//app/service/main/account/api:go_default_library",
  33. "//app/service/main/up/api/v1:go_default_library",
  34. "//library/ecode:go_default_library",
  35. "//library/log:go_default_library",
  36. "//library/queue/databus:go_default_library",
  37. "//library/queue/databus/databusutil:go_default_library",
  38. "//library/queue/databus/report:go_default_library",
  39. "//library/xstr:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. ],
  42. )
  43. filegroup(
  44. name = "package-srcs",
  45. srcs = glob(["**"]),
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:private"],
  48. )
  49. filegroup(
  50. name = "all-srcs",
  51. srcs = [":package-srcs"],
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. )
  55. go_test(
  56. name = "go_default_test",
  57. srcs = [
  58. "monitor_test.go",
  59. "service_test.go",
  60. ],
  61. embed = [":go_default_library"],
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/job/main/aegis/conf:go_default_library",
  65. "//app/job/main/aegis/model/monitor:go_default_library",
  66. "//app/service/main/account/api:go_default_library",
  67. "//library/log:go_default_library",
  68. "//vendor/github.com/golang/mock/gomock:go_default_library",
  69. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  70. ],
  71. )