BUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "dao.cache_test.go",
  11. "dao_test.go",
  12. "mc.cache_test.go",
  13. "up_group_test.go",
  14. "up_mc_test.go",
  15. "up_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/service/main/up/api/v1:go_default_library",
  22. "//app/service/main/up/conf:go_default_library",
  23. "//app/service/main/up/dao:go_default_library",
  24. "//app/service/main/up/dao/global:go_default_library",
  25. "//app/service/main/up/model:go_default_library",
  26. "//library/net/http/blademaster:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "dao.cache.go",
  34. "dao.go",
  35. "mc.cache.go",
  36. "up.go",
  37. "up_group.go",
  38. "up_mc.go",
  39. ],
  40. importpath = "go-common/app/service/main/up/dao/manager",
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. deps = [
  44. "//app/service/main/up/api/v1:go_default_library",
  45. "//app/service/main/up/conf:go_default_library",
  46. "//app/service/main/up/dao:go_default_library",
  47. "//app/service/main/up/dao/global:go_default_library",
  48. "//app/service/main/up/model:go_default_library",
  49. "//library/cache/memcache:go_default_library",
  50. "//library/database/sql:go_default_library",
  51. "//library/log:go_default_library",
  52. "//library/net/http/blademaster:go_default_library",
  53. "//library/stat/prom:go_default_library",
  54. "//library/sync/errgroup:go_default_library",
  55. "//library/sync/pipeline/fanout:go_default_library",
  56. "//library/xstr:go_default_library",
  57. ],
  58. )
  59. filegroup(
  60. name = "package-srcs",
  61. srcs = glob(["**"]),
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:private"],
  64. )
  65. filegroup(
  66. name = "all-srcs",
  67. srcs = [":package-srcs"],
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:public"],
  70. )