BUILD 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. "delay_test.go",
  13. "desc_format_test.go",
  14. "flow_test.go",
  15. "history_test.go",
  16. "netsafe_test.go",
  17. "new_video_test.go",
  18. "porder_test.go",
  19. "redis_test.go",
  20. "report_test.go",
  21. "staff_test.go",
  22. "type_test.go",
  23. "video_test.go",
  24. ],
  25. embed = [":go_default_library"],
  26. tags = ["automanaged"],
  27. deps = [
  28. "//app/service/main/videoup/conf:go_default_library",
  29. "//app/service/main/videoup/model/archive:go_default_library",
  30. "//library/database/sql:go_default_library",
  31. "//library/time:go_default_library",
  32. "//vendor/github.com/bouk/monkey:go_default_library",
  33. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  34. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  35. ],
  36. )
  37. go_library(
  38. name = "go_default_library",
  39. srcs = [
  40. "archive.go",
  41. "dao.cache.go",
  42. "dao.go",
  43. "delay.go",
  44. "desc_format.go",
  45. "flow.go",
  46. "forbid.go",
  47. "history.go",
  48. "mc.cache.go",
  49. "netsafe.go",
  50. "new_video.go",
  51. "porder.go",
  52. "redis.go",
  53. "relation.go",
  54. "report.go",
  55. "staff.go",
  56. "staff_apply.go",
  57. "type.go",
  58. "video.go",
  59. ],
  60. importpath = "go-common/app/service/main/videoup/dao/archive",
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. deps = [
  64. "//app/service/main/videoup/conf:go_default_library",
  65. "//app/service/main/videoup/model/archive:go_default_library",
  66. "//library/cache/memcache:go_default_library",
  67. "//library/cache/redis:go_default_library",
  68. "//library/database/sql:go_default_library",
  69. "//library/log:go_default_library",
  70. "//library/net/metadata:go_default_library",
  71. "//library/stat/prom:go_default_library",
  72. "//library/sync/pipeline/fanout:go_default_library",
  73. "//library/time:go_default_library",
  74. "//library/xstr:go_default_library",
  75. "//vendor/github.com/dgryski/go-farm:go_default_library",
  76. "//vendor/github.com/pkg/errors:go_default_library",
  77. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  78. ],
  79. )
  80. filegroup(
  81. name = "package-srcs",
  82. srcs = glob(["**"]),
  83. tags = ["automanaged"],
  84. visibility = ["//visibility:private"],
  85. )
  86. filegroup(
  87. name = "all-srcs",
  88. srcs = [":package-srcs"],
  89. tags = ["automanaged"],
  90. visibility = ["//visibility:public"],
  91. )