BUILD 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "api.go",
  11. "archive.go",
  12. "archive_play.go",
  13. "article.go",
  14. "dao.go",
  15. "fan.go",
  16. "memcache.go",
  17. "overview.go",
  18. "overview_mc.go",
  19. "table.go",
  20. ],
  21. importpath = "go-common/app/interface/main/creative/dao/data",
  22. tags = ["automanaged"],
  23. visibility = ["//visibility:public"],
  24. deps = [
  25. "//app/admin/main/up/util/hbaseutil:go_default_library",
  26. "//app/interface/main/creative/conf:go_default_library",
  27. "//app/interface/main/creative/model/data:go_default_library",
  28. "//app/interface/openplatform/article/model:go_default_library",
  29. "//library/cache/memcache:go_default_library",
  30. "//library/database/hbase.v2:go_default_library",
  31. "//library/ecode:go_default_library",
  32. "//library/log:go_default_library",
  33. "//library/net/http/blademaster:go_default_library",
  34. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  35. "@org_golang_x_net//context:go_default_library",
  36. ],
  37. )
  38. filegroup(
  39. name = "package-srcs",
  40. srcs = glob(["**"]),
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:private"],
  43. )
  44. filegroup(
  45. name = "all-srcs",
  46. srcs = [":package-srcs"],
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. )
  50. go_test(
  51. name = "go_default_test",
  52. srcs = [
  53. "api_test.go",
  54. "archive_play_test.go",
  55. "archive_test.go",
  56. "article_test.go",
  57. "dao_test.go",
  58. "fan_test.go",
  59. "memcache_test.go",
  60. "overview_mc_test.go",
  61. "overview_test.go",
  62. ],
  63. embed = [":go_default_library"],
  64. rundir = ".",
  65. tags = ["automanaged"],
  66. deps = [
  67. "//app/interface/main/creative/conf:go_default_library",
  68. "//app/interface/main/creative/model/data:go_default_library",
  69. "//app/interface/openplatform/article/model:go_default_library",
  70. "//library/cache/memcache:go_default_library",
  71. "//library/database/hbase.v2:go_default_library",
  72. "//library/ecode:go_default_library",
  73. "//library/log:go_default_library",
  74. "//library/net/http/blademaster:go_default_library",
  75. "//vendor/github.com/bouk/monkey:go_default_library",
  76. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  77. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  78. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  79. ],
  80. )