BUILD 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. "client_test.go",
  11. "dao_test.go",
  12. "databus_test.go",
  13. "memcache_test.go",
  14. "mysql_test.go",
  15. "push_test.go",
  16. "redis_test.go",
  17. "report_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/service/main/push/conf:go_default_library",
  24. "//app/service/main/push/dao/oppo:go_default_library",
  25. "//app/service/main/push/model:go_default_library",
  26. "//library/cache/redis:go_default_library",
  27. "//library/time:go_default_library",
  28. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "client.go",
  35. "dao.go",
  36. "databus.go",
  37. "mc.cache.go",
  38. "memcache.go",
  39. "mysql.go",
  40. "mysql_report.go",
  41. "mysql_setting.go",
  42. "push.go",
  43. "redis.go",
  44. "report.go",
  45. ],
  46. importpath = "go-common/app/service/main/push/dao",
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. deps = [
  50. "//app/service/main/push/conf:go_default_library",
  51. "//app/service/main/push/dao/apns2:go_default_library",
  52. "//app/service/main/push/dao/fcm:go_default_library",
  53. "//app/service/main/push/dao/huawei:go_default_library",
  54. "//app/service/main/push/dao/jpush:go_default_library",
  55. "//app/service/main/push/dao/mi:go_default_library",
  56. "//app/service/main/push/dao/oppo:go_default_library",
  57. "//app/service/main/push/model:go_default_library",
  58. "//library/cache/memcache:go_default_library",
  59. "//library/cache/redis:go_default_library",
  60. "//library/conf/env:go_default_library",
  61. "//library/database/sql:go_default_library",
  62. "//library/log:go_default_library",
  63. "//library/queue/databus:go_default_library",
  64. "//library/stat/prom:go_default_library",
  65. "//library/sync/errgroup:go_default_library",
  66. "//library/xstr:go_default_library",
  67. ],
  68. )
  69. filegroup(
  70. name = "package-srcs",
  71. srcs = glob(["**"]),
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:private"],
  74. )
  75. filegroup(
  76. name = "all-srcs",
  77. srcs = [
  78. ":package-srcs",
  79. "//app/service/main/push/dao/apns2:all-srcs",
  80. "//app/service/main/push/dao/fcm:all-srcs",
  81. "//app/service/main/push/dao/huawei:all-srcs",
  82. "//app/service/main/push/dao/jpush:all-srcs",
  83. "//app/service/main/push/dao/mi:all-srcs",
  84. "//app/service/main/push/dao/oppo:all-srcs",
  85. ],
  86. tags = ["automanaged"],
  87. visibility = ["//visibility:public"],
  88. )