BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. "dao_test.go",
  11. "databus_test.go",
  12. "mysql_test.go",
  13. "redis_test.go",
  14. "reply_test.go",
  15. "search_test.go",
  16. "stat_redis_test.go",
  17. ],
  18. embed = [":go_default_library"],
  19. rundir = ".",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/interface/main/playlist/conf:go_default_library",
  23. "//app/interface/main/playlist/model:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "dao.go",
  31. "databus.go",
  32. "mysql.go",
  33. "redis.go",
  34. "reply.go",
  35. "search.go",
  36. "stat_redis.go",
  37. ],
  38. importpath = "go-common/app/interface/main/playlist/dao",
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. deps = [
  42. "//app/interface/main/playlist/conf:go_default_library",
  43. "//app/interface/main/playlist/model:go_default_library",
  44. "//app/job/main/playlist/model:go_default_library",
  45. "//library/cache/redis:go_default_library",
  46. "//library/database/sql:go_default_library",
  47. "//library/ecode:go_default_library",
  48. "//library/log:go_default_library",
  49. "//library/net/http/blademaster:go_default_library",
  50. "//library/net/metadata:go_default_library",
  51. "//library/queue/databus:go_default_library",
  52. "//library/stat/prom:go_default_library",
  53. "//library/time:go_default_library",
  54. "//library/xstr:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )