BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "coinexchange_test.go",
  11. "coinstream_test.go",
  12. "mc_wallet_test.go",
  13. "metal_test.go",
  14. "pub_test.go",
  15. "redis_test.go",
  16. "tx_test.go",
  17. "wallet_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/service/live/wallet/conf:go_default_library",
  24. "//app/service/live/wallet/model:go_default_library",
  25. "//library/cache/memcache:go_default_library",
  26. "//library/cache/redis:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  30. ],
  31. )
  32. go_library(
  33. name = "go_default_library",
  34. srcs = [
  35. "coinexchange.go",
  36. "coinstream.go",
  37. "dao.go",
  38. "mc_wallet.go",
  39. "metal.go",
  40. "pub.go",
  41. "redis.go",
  42. "tx.go",
  43. "wallet.go",
  44. ],
  45. importpath = "go-common/app/service/live/wallet/dao",
  46. tags = ["automanaged"],
  47. deps = [
  48. "//app/service/live/wallet/conf:go_default_library",
  49. "//app/service/live/wallet/model:go_default_library",
  50. "//library/cache/memcache:go_default_library",
  51. "//library/cache/redis:go_default_library",
  52. "//library/database/sql:go_default_library",
  53. "//library/ecode:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/net/http/blademaster:go_default_library",
  56. "//library/queue/databus:go_default_library",
  57. "//vendor/github.com/pkg/errors:go_default_library",
  58. ],
  59. )
  60. filegroup(
  61. name = "package-srcs",
  62. srcs = glob(["**"]),
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:private"],
  65. )
  66. filegroup(
  67. name = "all-srcs",
  68. srcs = [":package-srcs"],
  69. tags = ["automanaged"],
  70. visibility = ["//visibility:public"],
  71. )