BUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "cache.go",
  11. "dao.cache.go",
  12. "dao.go",
  13. "mysql.go",
  14. "pointdata.go",
  15. "redis.go",
  16. "search.go",
  17. ],
  18. importpath = "go-common/app/interface/main/esports/dao",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/interface/main/esports/conf:go_default_library",
  23. "//app/interface/main/esports/model:go_default_library",
  24. "//app/service/main/archive/api:go_default_library",
  25. "//app/service/main/archive/model/archive:go_default_library",
  26. "//library/cache/redis:go_default_library",
  27. "//library/database/elastic:go_default_library",
  28. "//library/database/sql:go_default_library",
  29. "//library/ecode:go_default_library",
  30. "//library/log:go_default_library",
  31. "//library/net/http/blademaster:go_default_library",
  32. "//library/net/metadata:go_default_library",
  33. "//library/stat/prom:go_default_library",
  34. "//library/sync/pipeline/fanout:go_default_library",
  35. "//library/xstr:go_default_library",
  36. "//vendor/github.com/pkg/errors:go_default_library",
  37. ],
  38. )
  39. filegroup(
  40. name = "package-srcs",
  41. srcs = glob(["**"]),
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:private"],
  44. )
  45. filegroup(
  46. name = "all-srcs",
  47. srcs = [":package-srcs"],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )
  51. go_test(
  52. name = "go_default_test",
  53. srcs = [
  54. "cache_test.go",
  55. "dao.cache_test.go",
  56. "dao_test.go",
  57. "mysql_test.go",
  58. "pointdata_test.go",
  59. "redis_test.go",
  60. "search_test.go",
  61. ],
  62. embed = [":go_default_library"],
  63. rundir = ".",
  64. tags = ["automanaged"],
  65. deps = [
  66. "//app/interface/main/esports/conf:go_default_library",
  67. "//app/interface/main/esports/model:go_default_library",
  68. "//app/service/main/archive/api:go_default_library",
  69. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  70. ],
  71. )