BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "dao_test.go",
  11. "databus_test.go",
  12. "memcache_test.go",
  13. "mysql_test.go",
  14. "redis_test.go",
  15. "search_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/service/main/favorite/conf:go_default_library",
  21. "//app/service/main/favorite/model:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. ],
  24. )
  25. go_library(
  26. name = "go_default_library",
  27. srcs = [
  28. "dao.go",
  29. "databus.go",
  30. "memcache.go",
  31. "mysql.go",
  32. "redis.go",
  33. "search.go",
  34. ],
  35. importpath = "go-common/app/service/main/favorite/dao",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/service/main/favorite/conf:go_default_library",
  40. "//app/service/main/favorite/model:go_default_library",
  41. "//app/service/main/riot-search/model:go_default_library",
  42. "//library/cache/memcache:go_default_library",
  43. "//library/cache/redis:go_default_library",
  44. "//library/database/sql: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. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )