BUILD 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. "bigdata_test.go",
  11. "cards_test.go",
  12. "creation_mc_test.go",
  13. "creation_test.go",
  14. "dao_test.go",
  15. "list_mc_test.go",
  16. "memcached_test.go",
  17. "mysql_article_test.go",
  18. "mysql_author_test.go",
  19. "mysql_list_test.go",
  20. "mysql_recommend_test.go",
  21. "mysql_test.go",
  22. "mysql_upper_test.go",
  23. "rank_test.go",
  24. "redis_like_test.go",
  25. "redis_sort_test.go",
  26. "redis_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/interface/openplatform/article/conf:go_default_library",
  33. "//app/interface/openplatform/article/model:go_default_library",
  34. "//library/cache/redis:go_default_library",
  35. "//library/ecode:go_default_library",
  36. "//library/time:go_default_library",
  37. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  38. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  39. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  40. ],
  41. )
  42. go_library(
  43. name = "go_default_library",
  44. srcs = [
  45. "activity.go",
  46. "anniversary_mc.go",
  47. "author.go",
  48. "berserker.go",
  49. "bfs.go",
  50. "bigdata.go",
  51. "cache.go",
  52. "cards.go",
  53. "creation.go",
  54. "creation_mc.go",
  55. "dao.cache.go",
  56. "dao.go",
  57. "databus.go",
  58. "dynamic.go",
  59. "list_mc.go",
  60. "mc.cache.go",
  61. "media.go",
  62. "memcached.go",
  63. "message.go",
  64. "mysql.go",
  65. "mysql_article.go",
  66. "mysql_author.go",
  67. "mysql_complaint.go",
  68. "mysql_draft.go",
  69. "mysql_list.go",
  70. "mysql_recommend.go",
  71. "mysql_upper.go",
  72. "rank.go",
  73. "redis.go",
  74. "redis_like.go",
  75. "redis_read.go",
  76. "redis_sort.go",
  77. ],
  78. importpath = "go-common/app/interface/openplatform/article/dao",
  79. tags = ["automanaged"],
  80. deps = [
  81. "//app/interface/main/creative/model/data:go_default_library",
  82. "//app/interface/openplatform/article/conf:go_default_library",
  83. "//app/interface/openplatform/article/model:go_default_library",
  84. "//library/cache:go_default_library",
  85. "//library/cache/memcache:go_default_library",
  86. "//library/cache/redis:go_default_library",
  87. "//library/conf/env:go_default_library",
  88. "//library/database/hbase.v2:go_default_library",
  89. "//library/database/sql:go_default_library",
  90. "//library/ecode:go_default_library",
  91. "//library/log:go_default_library",
  92. "//library/net/http/blademaster:go_default_library",
  93. "//library/net/metadata:go_default_library",
  94. "//library/queue/databus:go_default_library",
  95. "//library/stat/prom:go_default_library",
  96. "//library/sync/errgroup:go_default_library",
  97. "//library/time:go_default_library",
  98. "//library/xstr:go_default_library",
  99. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  100. "@org_golang_x_net//context:go_default_library",
  101. ],
  102. )
  103. filegroup(
  104. name = "package-srcs",
  105. srcs = glob(["**"]),
  106. tags = ["automanaged"],
  107. visibility = ["//visibility:private"],
  108. )
  109. filegroup(
  110. name = "all-srcs",
  111. srcs = [":package-srcs"],
  112. tags = ["automanaged"],
  113. visibility = ["//visibility:public"],
  114. )