BUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = [
  22. "archive_test.go",
  23. "log_test.go",
  24. "mng_v2_test.go",
  25. "service_test.go",
  26. "update_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/search/conf:go_default_library",
  33. "//app/admin/main/search/model:go_default_library",
  34. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  35. ],
  36. )
  37. go_library(
  38. name = "go_default_library",
  39. srcs = [
  40. "archive.go",
  41. "log.go",
  42. "mng.go",
  43. "mng_v2.go",
  44. "query.go",
  45. "service.go",
  46. "update.go",
  47. "upsert.go",
  48. ],
  49. importpath = "go-common/app/admin/main/search/service",
  50. tags = ["automanaged"],
  51. deps = [
  52. "//app/admin/main/search/conf:go_default_library",
  53. "//app/admin/main/search/dao:go_default_library",
  54. "//app/admin/main/search/model:go_default_library",
  55. "//library/ecode:go_default_library",
  56. "//library/log:go_default_library",
  57. "//library/sync/errgroup:go_default_library",
  58. ],
  59. )