BUILD 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "extra_func_test.go",
  11. "service_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/job/main/videoup/conf:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. ],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "audit.go",
  25. "databus.go",
  26. "delay.go",
  27. "extra_func.go",
  28. "history.go",
  29. "result.go",
  30. "retry.go",
  31. "round.go",
  32. "send.go",
  33. "service.go",
  34. "shot.go",
  35. "stat.go",
  36. "video.go",
  37. ],
  38. importpath = "go-common/app/job/main/videoup/service",
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. deps = [
  42. "//app/job/main/videoup/conf:go_default_library",
  43. "//app/job/main/videoup/dao/activity:go_default_library",
  44. "//app/job/main/videoup/dao/archive:go_default_library",
  45. "//app/job/main/videoup/dao/bvc:go_default_library",
  46. "//app/job/main/videoup/dao/manager:go_default_library",
  47. "//app/job/main/videoup/dao/message:go_default_library",
  48. "//app/job/main/videoup/dao/monitor:go_default_library",
  49. "//app/job/main/videoup/dao/redis:go_default_library",
  50. "//app/job/main/videoup/model/archive:go_default_library",
  51. "//app/job/main/videoup/model/manager:go_default_library",
  52. "//app/job/main/videoup/model/message:go_default_library",
  53. "//app/job/main/videoup/model/redis:go_default_library",
  54. "//app/service/main/account/api:go_default_library",
  55. "//library/conf/env:go_default_library",
  56. "//library/database/sql:go_default_library",
  57. "//library/ecode:go_default_library",
  58. "//library/log:go_default_library",
  59. "//library/queue/databus:go_default_library",
  60. "//library/stat/prom:go_default_library",
  61. "//library/time:go_default_library",
  62. "//vendor/github.com/pkg/errors:go_default_library",
  63. ],
  64. )
  65. filegroup(
  66. name = "package-srcs",
  67. srcs = glob(["**"]),
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:private"],
  70. )
  71. filegroup(
  72. name = "all-srcs",
  73. srcs = [":package-srcs"],
  74. tags = ["automanaged"],
  75. visibility = ["//visibility:public"],
  76. )