BUILD 2.0 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. "grpc.go",
  12. "localcache.go",
  13. "mc.cache.go",
  14. "mc.extra.go",
  15. "mysql.go",
  16. ],
  17. importpath = "go-common/app/service/main/ugcpay-rank/internal/dao",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/service/main/account/api:go_default_library",
  22. "//app/service/main/account/model:go_default_library",
  23. "//app/service/main/ugcpay-rank/internal/conf:go_default_library",
  24. "//app/service/main/ugcpay-rank/internal/model:go_default_library",
  25. "//library/cache/memcache:go_default_library",
  26. "//library/database/sql:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/stat/prom:go_default_library",
  29. "//library/xstr:go_default_library",
  30. "//vendor/github.com/bluele/gcache:go_default_library",
  31. "//vendor/github.com/pkg/errors:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [":package-srcs"],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )
  46. go_test(
  47. name = "go_default_test",
  48. srcs = [
  49. "dao_test.go",
  50. "grpc_test.go",
  51. "localcache_test.go",
  52. "mc.cache_test.go",
  53. "mc.extra_test.go",
  54. "mysql_test.go",
  55. ],
  56. embed = [":go_default_library"],
  57. tags = ["automanaged"],
  58. deps = [
  59. "//app/service/main/ugcpay-rank/internal/conf:go_default_library",
  60. "//app/service/main/ugcpay-rank/internal/model:go_default_library",
  61. "//library/cache/memcache:go_default_library",
  62. "//library/time:go_default_library",
  63. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  64. ],
  65. )