BUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "api_test.go",
  11. "dao_test.go",
  12. "databus_test.go",
  13. "redis_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/interface/main/app-interface/conf:go_default_library",
  20. "//app/interface/main/app-interface/model:go_default_library",
  21. "//app/interface/main/app-interface/model/space:go_default_library",
  22. "//library/time:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "api.go",
  31. "dao.go",
  32. "databus.go",
  33. "redis.go",
  34. ],
  35. importpath = "go-common/app/interface/main/app-interface/dao/bplus",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/interface/main/app-interface/conf:go_default_library",
  40. "//app/interface/main/app-interface/model:go_default_library",
  41. "//app/interface/main/app-interface/model/bplus:go_default_library",
  42. "//app/interface/main/app-interface/model/space:go_default_library",
  43. "//library/cache/redis:go_default_library",
  44. "//library/ecode:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/http/blademaster:go_default_library",
  47. "//library/net/metadata:go_default_library",
  48. "//library/queue/databus:go_default_library",
  49. "//library/time:go_default_library",
  50. "//library/xstr:go_default_library",
  51. "//vendor/github.com/pkg/errors:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )