BUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "cache_test.go",
  11. "storm_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. tags = ["automanaged"],
  15. deps = [
  16. "//app/service/live/xlottery/model:go_default_library",
  17. "//library/cache/redis:go_default_library",
  18. "//library/container/pool:go_default_library",
  19. "//library/database/sql:go_default_library",
  20. "//library/time:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "api.go",
  27. "award.go",
  28. "cache.go",
  29. "capsule.go",
  30. "capsule_extra.go",
  31. "coin.go",
  32. "coin_config.go",
  33. "dao.go",
  34. "pool.go",
  35. "pool_prize.go",
  36. "prize_extra.go",
  37. "prize_log.go",
  38. "storm.go",
  39. ],
  40. importpath = "go-common/app/service/live/xlottery/dao",
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. deps = [
  44. "//app/service/live/gift/api/liverpc:go_default_library",
  45. "//app/service/live/rc/api/liverpc:go_default_library",
  46. "//app/service/live/rc/api/liverpc/v1:go_default_library",
  47. "//app/service/live/userext/api/liverpc:go_default_library",
  48. "//app/service/live/xlottery/api/grpc/v1:go_default_library",
  49. "//app/service/live/xlottery/conf:go_default_library",
  50. "//app/service/live/xlottery/model:go_default_library",
  51. "//app/service/main/account/rpc/client:go_default_library",
  52. "//library/cache/redis:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/net/rpc/liverpc:go_default_library",
  56. "//library/queue/databus/report:go_default_library",
  57. "//vendor/github.com/pkg/errors:go_default_library",
  58. ],
  59. )
  60. filegroup(
  61. name = "package-srcs",
  62. srcs = glob(["**"]),
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:private"],
  65. )
  66. filegroup(
  67. name = "all-srcs",
  68. srcs = [":package-srcs"],
  69. tags = ["automanaged"],
  70. visibility = ["//visibility:public"],
  71. )