BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. "mc.go",
  14. "mysql.go",
  15. ],
  16. importpath = "go-common/app/service/main/vipinfo/dao",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/service/main/vipinfo/conf:go_default_library",
  21. "//app/service/main/vipinfo/model:go_default_library",
  22. "//library/cache:go_default_library",
  23. "//library/cache/memcache:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/net/metadata:go_default_library",
  26. "//library/stat/prom:go_default_library",
  27. "//library/sync/errgroup:go_default_library",
  28. "//library/xstr:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "dao.cache_test.go",
  48. "dao_test.go",
  49. "mc_test.go",
  50. "mysql_test.go",
  51. ],
  52. embed = [":go_default_library"],
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/service/main/vipinfo/conf:go_default_library",
  56. "//app/service/main/vipinfo/model:go_default_library",
  57. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  58. ],
  59. )