BUILD 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. go_test(
  7. name = "go_default_test",
  8. srcs = [
  9. "import_test.go",
  10. "sea_con_test.go",
  11. "sync_video_test.go",
  12. "ugc_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/job/main/tv/conf:go_default_library",
  19. "//app/job/main/tv/model/ugc:go_default_library",
  20. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "databus.go",
  27. "del_arc.go",
  28. "del_video.go",
  29. "full_refresh.go",
  30. "import.go",
  31. "manual.go",
  32. "media_cache.go",
  33. "pick.go",
  34. "report_cid.go",
  35. "sea_con.go",
  36. "sync_arc.go",
  37. "sync_video.go",
  38. "tool.go",
  39. "ugc.go",
  40. "upper.go",
  41. "view.go",
  42. "zone_index.go",
  43. ],
  44. importpath = "go-common/app/job/main/tv/service/ugc",
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. deps = [
  48. "//app/job/main/tv/conf:go_default_library",
  49. "//app/job/main/tv/dao/app:go_default_library",
  50. "//app/job/main/tv/dao/archive:go_default_library",
  51. "//app/job/main/tv/dao/cms:go_default_library",
  52. "//app/job/main/tv/dao/ftp:go_default_library",
  53. "//app/job/main/tv/dao/lic:go_default_library",
  54. "//app/job/main/tv/dao/playurl:go_default_library",
  55. "//app/job/main/tv/dao/ugc:go_default_library",
  56. "//app/job/main/tv/dao/upper:go_default_library",
  57. "//app/job/main/tv/model/pgc:go_default_library",
  58. "//app/job/main/tv/model/ugc:go_default_library",
  59. "//app/service/main/account/model:go_default_library",
  60. "//app/service/main/archive/api:go_default_library",
  61. "//app/service/main/archive/api/gorpc:go_default_library",
  62. "//app/service/main/archive/model/archive:go_default_library",
  63. "//library/database/sql:go_default_library",
  64. "//library/ecode:go_default_library",
  65. "//library/log:go_default_library",
  66. "//library/queue/databus:go_default_library",
  67. "//library/time:go_default_library",
  68. "//vendor/github.com/robfig/cron:go_default_library",
  69. ],
  70. )
  71. filegroup(
  72. name = "package-srcs",
  73. srcs = glob(["**"]),
  74. tags = ["automanaged"],
  75. visibility = ["//visibility:private"],
  76. )
  77. filegroup(
  78. name = "all-srcs",
  79. srcs = [":package-srcs"],
  80. tags = ["automanaged"],
  81. visibility = ["//visibility:public"],
  82. )