BUILD 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. "achievements_test.go",
  11. "act_mission_test.go",
  12. "act_test.go",
  13. "action_test.go",
  14. "cache_test.go",
  15. "content_test.go",
  16. "dao.cache_test.go",
  17. "dao_test.go",
  18. "extend_test.go",
  19. "like_test.go",
  20. "lottery_test.go",
  21. "match_redis_test.go",
  22. "match_test.go",
  23. "mc.cache_test.go",
  24. "memcached_test.go",
  25. "mission_group_test.go",
  26. "protocol_test.go",
  27. "redis_test.go",
  28. "subject_test.go",
  29. "user_achievements_test.go",
  30. ],
  31. embed = [":go_default_library"],
  32. rundir = ".",
  33. tags = ["automanaged"],
  34. deps = [
  35. "//app/interface/main/activity/conf:go_default_library",
  36. "//app/interface/main/activity/model/like:go_default_library",
  37. "//library/time:go_default_library",
  38. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  39. ],
  40. )
  41. go_library(
  42. name = "go_default_library",
  43. srcs = [
  44. "achievements.go",
  45. "act.go",
  46. "act_mission.go",
  47. "action.go",
  48. "cache.go",
  49. "content.go",
  50. "dao.cache.go",
  51. "dao.go",
  52. "extend.go",
  53. "like.go",
  54. "lottery.go",
  55. "match.go",
  56. "match_redis.go",
  57. "mc.cache.go",
  58. "memcached.go",
  59. "mission_group.go",
  60. "protocol.go",
  61. "redis.go",
  62. "subject.go",
  63. "user_achievements.go",
  64. ],
  65. importpath = "go-common/app/interface/main/activity/dao/like",
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. deps = [
  69. "//app/interface/main/activity/conf:go_default_library",
  70. "//app/interface/main/activity/model/like:go_default_library",
  71. "//library/cache/memcache:go_default_library",
  72. "//library/cache/redis:go_default_library",
  73. "//library/database/elastic:go_default_library",
  74. "//library/database/sql:go_default_library",
  75. "//library/ecode:go_default_library",
  76. "//library/log:go_default_library",
  77. "//library/net/http/blademaster:go_default_library",
  78. "//library/net/metadata:go_default_library",
  79. "//library/stat/prom:go_default_library",
  80. "//library/sync/pipeline/fanout:go_default_library",
  81. "//library/time:go_default_library",
  82. "//library/xstr:go_default_library",
  83. "//vendor/github.com/pkg/errors:go_default_library",
  84. ],
  85. )
  86. filegroup(
  87. name = "package-srcs",
  88. srcs = glob(["**"]),
  89. tags = ["automanaged"],
  90. visibility = ["//visibility:private"],
  91. )
  92. filegroup(
  93. name = "all-srcs",
  94. srcs = [":package-srcs"],
  95. tags = ["automanaged"],
  96. visibility = ["//visibility:public"],
  97. )