BUILD 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. "cache_test.go",
  11. "dao.cache_test.go",
  12. "dao_test.go",
  13. "databus_test.go",
  14. "log_test.go",
  15. "mc.cache_test.go",
  16. "mysql_coin_test.go",
  17. "mysql_test.go",
  18. "redis_test.go",
  19. "relation_test.go",
  20. "tag_test.go",
  21. ],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//app/service/main/coin/conf:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  29. ],
  30. )
  31. go_library(
  32. name = "go_default_library",
  33. srcs = [
  34. "cache.go",
  35. "dao.cache.go",
  36. "dao.go",
  37. "databus.go",
  38. "log.go",
  39. "mc.cache.go",
  40. "mysql.go",
  41. "mysql_coin.go",
  42. "redis.go",
  43. "relation.go",
  44. "tag.go",
  45. ],
  46. importpath = "go-common/app/service/main/coin/dao",
  47. tags = ["automanaged"],
  48. deps = [
  49. "//app/service/main/coin/api:go_default_library",
  50. "//app/service/main/coin/conf:go_default_library",
  51. "//app/service/main/coin/model:go_default_library",
  52. "//library/cache/memcache:go_default_library",
  53. "//library/cache/redis:go_default_library",
  54. "//library/database/elastic:go_default_library",
  55. "//library/database/sql:go_default_library",
  56. "//library/ecode:go_default_library",
  57. "//library/log:go_default_library",
  58. "//library/net/http/blademaster:go_default_library",
  59. "//library/net/metadata:go_default_library",
  60. "//library/queue/databus:go_default_library",
  61. "//library/queue/databus/report:go_default_library",
  62. "//library/stat/prom:go_default_library",
  63. "//library/sync/pipeline/fanout:go_default_library",
  64. "//vendor/github.com/pkg/errors:go_default_library",
  65. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  66. ],
  67. )
  68. filegroup(
  69. name = "package-srcs",
  70. srcs = glob(["**"]),
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:private"],
  73. )
  74. filegroup(
  75. name = "all-srcs",
  76. srcs = [":package-srcs"],
  77. tags = ["automanaged"],
  78. visibility = ["//visibility:public"],
  79. )