BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "cache.go",
  11. "dao.cache.go",
  12. "dao.go",
  13. "hbase.go",
  14. "hbase_scan.go",
  15. "mc.cache.go",
  16. ],
  17. importpath = "go-common/app/interface/main/activity/dao/timemachine",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/interface/main/activity/conf:go_default_library",
  22. "//app/interface/main/activity/model/timemachine:go_default_library",
  23. "//library/cache/memcache:go_default_library",
  24. "//library/database/hbase.v2:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/stat/prom:go_default_library",
  27. "//library/sync/pipeline/fanout:go_default_library",
  28. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = [
  46. "cache_test.go",
  47. "dao.cache_test.go",
  48. "dao_test.go",
  49. "hbase_test.go",
  50. "mc.cache_test.go",
  51. ],
  52. embed = [":go_default_library"],
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/interface/main/activity/conf:go_default_library",
  56. "//app/interface/main/activity/model/timemachine:go_default_library",
  57. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  58. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  59. ],
  60. )