BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "search.go",
  11. "search_web.go",
  12. ],
  13. importpath = "go-common/app/admin/main/feed/service/search",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/admin/main/feed/conf:go_default_library",
  18. "//app/admin/main/feed/dao/search:go_default_library",
  19. "//app/admin/main/feed/dao/show:go_default_library",
  20. "//app/admin/main/feed/model/common:go_default_library",
  21. "//app/admin/main/feed/model/search:go_default_library",
  22. "//app/admin/main/feed/model/show:go_default_library",
  23. "//app/admin/main/feed/util:go_default_library",
  24. "//library/cache/memcache:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/net/http/blademaster:go_default_library",
  27. "//vendor/github.com/jinzhu/gorm:go_default_library",
  28. "//vendor/github.com/robfig/cron:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = ["search_test.go"],
  46. embed = [":go_default_library"],
  47. rundir = ".",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//app/admin/main/feed/conf:go_default_library",
  51. "//app/admin/main/feed/model/search:go_default_library",
  52. "//library/log:go_default_library",
  53. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  54. ],
  55. )