BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "databus.go",
  12. "item_likes_redis.go",
  13. "memcached.go",
  14. "redis.go",
  15. "tidb.go",
  16. "user_likes_redis.go",
  17. ],
  18. importpath = "go-common/app/job/main/thumbup/dao",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/job/main/thumbup/conf:go_default_library",
  23. "//app/job/main/thumbup/model:go_default_library",
  24. "//library/cache/memcache:go_default_library",
  25. "//library/cache/redis:go_default_library",
  26. "//library/database/tidb:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/queue/databus:go_default_library",
  29. "//library/time:go_default_library",
  30. "//library/xstr:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = [
  48. "dao_test.go",
  49. "databus_test.go",
  50. "item_likes_redis_test.go",
  51. "memcached_test.go",
  52. "redis_test.go",
  53. "tidb_test.go",
  54. "user_likes_redis_test.go",
  55. ],
  56. embed = [":go_default_library"],
  57. tags = ["automanaged"],
  58. deps = [
  59. "//app/job/main/thumbup/conf:go_default_library",
  60. "//app/job/main/thumbup/model:go_default_library",
  61. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  62. ],
  63. )