BUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.cache.go",
  11. "dao.go",
  12. "grpc.go",
  13. "http.go",
  14. "mc.cache.go",
  15. "mysql.go",
  16. "redis.go",
  17. ],
  18. importpath = "go-common/app/service/main/ugcpay/dao",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/service/main/archive/api:go_default_library",
  23. "//app/service/main/ugcpay/conf:go_default_library",
  24. "//app/service/main/ugcpay/model:go_default_library",
  25. "//library/cache:go_default_library",
  26. "//library/cache/memcache:go_default_library",
  27. "//library/cache/redis:go_default_library",
  28. "//library/database/sql:go_default_library",
  29. "//library/ecode:go_default_library",
  30. "//library/log:go_default_library",
  31. "//library/net/metadata:go_default_library",
  32. "//library/stat/prom:go_default_library",
  33. "//vendor/github.com/pkg/errors:go_default_library",
  34. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  35. ],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [":package-srcs"],
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. )
  49. go_test(
  50. name = "go_default_test",
  51. srcs = [
  52. "dao.cache_test.go",
  53. "dao_test.go",
  54. "grpc_test.go",
  55. "http_test.go",
  56. "mc.cache_test.go",
  57. "mysql_test.go",
  58. "redis_test.go",
  59. ],
  60. embed = [":go_default_library"],
  61. rundir = ".",
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/service/main/ugcpay/conf:go_default_library",
  65. "//app/service/main/ugcpay/model:go_default_library",
  66. "//library/database/sql:go_default_library",
  67. "//library/ecode:go_default_library",
  68. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  69. ],
  70. )