BUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/job/main/archive/conf:go_default_library",
  15. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  16. ],
  17. )
  18. go_library(
  19. name = "go_default_library",
  20. srcs = [
  21. "archive.go",
  22. "archive_result.go",
  23. "cache.go",
  24. "dm.go",
  25. "retry.go",
  26. "service.go",
  27. "video.go",
  28. ],
  29. importpath = "go-common/app/job/main/archive/service",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/interface/main/dm2/model:go_default_library",
  33. "//app/interface/main/dm2/rpc/client:go_default_library",
  34. "//app/job/main/archive/conf:go_default_library",
  35. "//app/job/main/archive/dao/archive:go_default_library",
  36. "//app/job/main/archive/dao/email:go_default_library",
  37. "//app/job/main/archive/dao/monitor:go_default_library",
  38. "//app/job/main/archive/dao/reply:go_default_library",
  39. "//app/job/main/archive/dao/result:go_default_library",
  40. "//app/job/main/archive/model/archive:go_default_library",
  41. "//app/job/main/archive/model/databus:go_default_library",
  42. "//app/job/main/archive/model/dm:go_default_library",
  43. "//app/job/main/archive/model/result:go_default_library",
  44. "//app/job/main/archive/model/retry:go_default_library",
  45. "//app/service/main/account/api:go_default_library",
  46. "//app/service/main/archive/api:go_default_library",
  47. "//app/service/main/archive/api/gorpc:go_default_library",
  48. "//app/service/main/archive/model/archive:go_default_library",
  49. "//library/cache/redis:go_default_library",
  50. "//library/database/sql:go_default_library",
  51. "//library/ecode:go_default_library",
  52. "//library/log:go_default_library",
  53. "//library/queue/databus:go_default_library",
  54. ],
  55. )
  56. filegroup(
  57. name = "package-srcs",
  58. srcs = glob(["**"]),
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:private"],
  61. )
  62. filegroup(
  63. name = "all-srcs",
  64. srcs = [":package-srcs"],
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:public"],
  67. )