BUILD 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. "dao.go",
  11. "task_db.go",
  12. "task_http.go",
  13. "task_mc.go",
  14. "task_orm.go",
  15. "task_redis.go",
  16. "task_report.go",
  17. "task_rpc.go",
  18. ],
  19. importpath = "go-common/app/job/main/aegis/dao",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/job/main/aegis/conf:go_default_library",
  24. "//app/job/main/aegis/model:go_default_library",
  25. "//app/service/main/relation/model:go_default_library",
  26. "//app/service/main/relation/rpc/client:go_default_library",
  27. "//app/service/main/up/api/v1:go_default_library",
  28. "//library/cache/memcache:go_default_library",
  29. "//library/cache/redis:go_default_library",
  30. "//library/database/orm:go_default_library",
  31. "//library/database/sql:go_default_library",
  32. "//library/ecode:go_default_library",
  33. "//library/log:go_default_library",
  34. "//library/net/http/blademaster:go_default_library",
  35. "//vendor/github.com/jinzhu/gorm:go_default_library",
  36. "//vendor/github.com/pkg/errors:go_default_library",
  37. ],
  38. )
  39. filegroup(
  40. name = "package-srcs",
  41. srcs = glob(["**"]),
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:private"],
  44. )
  45. filegroup(
  46. name = "all-srcs",
  47. srcs = [
  48. ":package-srcs",
  49. "//app/job/main/aegis/dao/email:all-srcs",
  50. "//app/job/main/aegis/dao/monitor:all-srcs",
  51. ],
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. )
  55. go_test(
  56. name = "go_default_test",
  57. srcs = [
  58. "dao_test.go",
  59. "task_db_test.go",
  60. "task_mc_test.go",
  61. "task_orm_test.go",
  62. "task_redis_test.go",
  63. "task_rpc_test.go",
  64. "task_test.go",
  65. ],
  66. embed = [":go_default_library"],
  67. rundir = ".",
  68. tags = ["automanaged"],
  69. deps = [
  70. "//app/job/main/aegis/conf:go_default_library",
  71. "//app/job/main/aegis/model:go_default_library",
  72. "//library/sync/errgroup:go_default_library",
  73. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  74. ],
  75. )