BUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "dao.go",
  11. "hbase.go",
  12. "memcache.go",
  13. "mysql.go",
  14. "rpc.go",
  15. ],
  16. importpath = "go-common/app/interface/main/creative/dao/weeklyhonor",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/admin/main/up/util/hbaseutil:go_default_library",
  21. "//app/interface/main/creative/conf:go_default_library",
  22. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  23. "//app/service/main/up/api/v1:go_default_library",
  24. "//library/cache/memcache:go_default_library",
  25. "//library/database/hbase.v2:go_default_library",
  26. "//library/database/sql:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "dao_test.go",
  48. "hbase_test.go",
  49. "memcache_test.go",
  50. "mysql_test.go",
  51. "rpc_test.go",
  52. ],
  53. embed = [":go_default_library"],
  54. tags = ["automanaged"],
  55. deps = [
  56. "//app/interface/main/creative/conf:go_default_library",
  57. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  58. "//app/service/main/up/api/v1:go_default_library",
  59. "//library/database/hbase.v2:go_default_library",
  60. "//vendor/github.com/bouk/monkey:go_default_library",
  61. "//vendor/github.com/golang/mock/gomock:go_default_library",
  62. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  63. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  64. ],
  65. )