BUILD 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "black.go",
  10. "follower.go",
  11. "following.go",
  12. "http.go",
  13. "monitor.go",
  14. "relation.go",
  15. "stat.go",
  16. "tag.go",
  17. "whisper.go",
  18. ],
  19. importpath = "go-common/app/service/main/relation/http",
  20. tags = ["automanaged"],
  21. visibility = ["//visibility:public"],
  22. deps = [
  23. "//app/service/main/relation/conf:go_default_library",
  24. "//app/service/main/relation/model:go_default_library",
  25. "//app/service/main/relation/service:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/net/http/blademaster:go_default_library",
  29. "//library/net/http/blademaster/middleware/antispam:go_default_library",
  30. "//library/net/http/blademaster/middleware/rate:go_default_library",
  31. "//library/net/http/blademaster/middleware/verify:go_default_library",
  32. "//library/net/metadata:go_default_library",
  33. "//library/time:go_default_library",
  34. "//library/xstr:go_default_library",
  35. ],
  36. )
  37. filegroup(
  38. name = "package-srcs",
  39. srcs = glob(["**"]),
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:private"],
  42. )
  43. filegroup(
  44. name = "all-srcs",
  45. srcs = [":package-srcs"],
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:public"],
  48. )