BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. "cond.go",
  11. "filter.go",
  12. "http.go",
  13. "keyword.go",
  14. "protocol.go",
  15. "regexp.go",
  16. "rule.go",
  17. ],
  18. importpath = "go-common/app/service/main/antispam/http",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/service/main/antispam/conf:go_default_library",
  23. "//app/service/main/antispam/dao:go_default_library",
  24. "//app/service/main/antispam/model:go_default_library",
  25. "//app/service/main/antispam/service:go_default_library",
  26. "//app/service/main/antispam/util:go_default_library",
  27. "//library/ecode:go_default_library",
  28. "//library/log:go_default_library",
  29. "//library/net/http/blademaster:go_default_library",
  30. "//library/net/http/blademaster/middleware/auth:go_default_library",
  31. "//library/net/http/blademaster/middleware/verify:go_default_library",
  32. ],
  33. )
  34. go_test(
  35. name = "go_default_xtest",
  36. srcs = ["cond_test.go"],
  37. tags = ["automanaged"],
  38. deps = [
  39. "//app/service/main/antispam/http:go_default_library",
  40. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  41. ],
  42. )
  43. filegroup(
  44. name = "package-srcs",
  45. srcs = glob(["**"]),
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:private"],
  48. )
  49. filegroup(
  50. name = "all-srcs",
  51. srcs = [":package-srcs"],
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. )