BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "favorite.go",
  11. "match.go",
  12. "match_active.go",
  13. "pointdata.go",
  14. "search.go",
  15. "service.go",
  16. ],
  17. importpath = "go-common/app/interface/main/esports/service",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/interface/main/esports/conf:go_default_library",
  22. "//app/interface/main/esports/dao: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/favorite/api/gorpc:go_default_library",
  26. "//app/service/main/favorite/model:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/net/metadata:go_default_library",
  30. "//library/sync/errgroup:go_default_library",
  31. "//library/sync/pipeline/fanout:go_default_library",
  32. "//library/xstr:go_default_library",
  33. "//vendor/github.com/robfig/cron:go_default_library",
  34. ],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [":package-srcs"],
  45. tags = ["automanaged"],
  46. visibility = ["//visibility:public"],
  47. )
  48. go_test(
  49. name = "go_default_test",
  50. srcs = [
  51. "favorite_test.go",
  52. "match_test.go",
  53. "search_test.go",
  54. "service_test.go",
  55. ],
  56. embed = [":go_default_library"],
  57. rundir = ".",
  58. tags = ["automanaged"],
  59. deps = [
  60. "//app/interface/main/esports/conf:go_default_library",
  61. "//app/interface/main/esports/model:go_default_library",
  62. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  63. ],
  64. )