BUILD 1.9 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 = ["http_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/admin/main/reply/conf:go_default_library",
  15. "//library/log:go_default_library",
  16. "//library/net/http/blademaster:go_default_library",
  17. "//library/time:go_default_library",
  18. ],
  19. )
  20. go_library(
  21. name = "go_default_library",
  22. srcs = [
  23. "action.go",
  24. "business.go",
  25. "emoji.go",
  26. "emoji_package.go",
  27. "http.go",
  28. "log.go",
  29. "monitor.go",
  30. "notice.go",
  31. "reply.go",
  32. "report.go",
  33. "subject.go",
  34. ],
  35. importpath = "go-common/app/admin/main/reply/http",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/admin/main/reply/conf:go_default_library",
  40. "//app/admin/main/reply/model:go_default_library",
  41. "//app/admin/main/reply/service:go_default_library",
  42. "//library/ecode:go_default_library",
  43. "//library/log:go_default_library",
  44. "//library/net/http/blademaster:go_default_library",
  45. "//library/net/http/blademaster/binding:go_default_library",
  46. "//library/net/http/blademaster/middleware/permit:go_default_library",
  47. "//library/net/http/blademaster/middleware/verify:go_default_library",
  48. "//library/net/ip:go_default_library",
  49. "//library/time:go_default_library",
  50. "//library/xstr: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. )