BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 = ["antispam.go"],
  10. importpath = "go-common/app/interface/main/upload/http/antispam",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/interface/main/upload/model:go_default_library",
  15. "//library/cache/redis:go_default_library",
  16. "//library/ecode:go_default_library",
  17. "//library/net/http/blademaster:go_default_library",
  18. "//library/net/http/blademaster/binding:go_default_library",
  19. ],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )
  33. go_test(
  34. name = "go_default_test",
  35. srcs = ["antispam_test.go"],
  36. embed = [":go_default_library"],
  37. rundir = ".",
  38. tags = ["automanaged"],
  39. deps = [
  40. "//app/interface/main/upload/model:go_default_library",
  41. "//library/cache/redis:go_default_library",
  42. "//library/container/pool:go_default_library",
  43. "//library/net/http/blademaster:go_default_library",
  44. "//library/time:go_default_library",
  45. ],
  46. )