BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "cond_test.go",
  11. "dao_test.go",
  12. "keyword_test.go",
  13. "mysql_test.go",
  14. "redis_test.go",
  15. "regexp_test.go",
  16. "rule_test.go",
  17. "transaction_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/service/main/antispam/conf:go_default_library",
  24. "//app/service/main/antispam/model:go_default_library",
  25. "//app/service/main/antispam/util:go_default_library",
  26. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  27. ],
  28. )
  29. go_library(
  30. name = "go_default_library",
  31. srcs = [
  32. "cond.go",
  33. "dao.go",
  34. "keyword.go",
  35. "mysql.go",
  36. "redis.go",
  37. "regexp.go",
  38. "rule.go",
  39. "transaction.go",
  40. ],
  41. importpath = "go-common/app/service/main/antispam/dao",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/service/main/antispam/conf:go_default_library",
  46. "//app/service/main/antispam/model:go_default_library",
  47. "//app/service/main/antispam/util:go_default_library",
  48. "//library/cache/redis:go_default_library",
  49. "//library/database/sql:go_default_library",
  50. "//library/log:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )