BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.go",
  11. "mysql.go",
  12. "redis.go",
  13. "redisKey.go",
  14. ],
  15. importpath = "go-common/app/service/live/dao-anchor/dao",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/common/live/library/lrucache:go_default_library",
  20. "//app/service/live/dao-anchor/api/grpc/v1:go_default_library",
  21. "//app/service/live/dao-anchor/conf:go_default_library",
  22. "//app/service/live/dao-anchor/model:go_default_library",
  23. "//library/cache/redis:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/ecode:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/queue/databus:go_default_library",
  28. "//library/sync/errgroup:go_default_library",
  29. "//vendor/github.com/json-iterator/go:go_default_library",
  30. "//vendor/github.com/pkg/errors:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = [
  48. "dao_test.go",
  49. "mysql_test.go",
  50. ],
  51. embed = [":go_default_library"],
  52. tags = ["automanaged"],
  53. deps = [
  54. "//app/service/live/dao-anchor/api/grpc/v1:go_default_library",
  55. "//app/service/live/dao-anchor/conf:go_default_library",
  56. "//app/service/live/dao-anchor/model:go_default_library",
  57. "//library/log:go_default_library",
  58. "//library/queue/databus:go_default_library",
  59. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  60. ],
  61. )