BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. "adv_test.go",
  11. "filter_test.go",
  12. "http_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = ["//app/admin/main/dm/conf:go_default_library"],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = [
  22. "adv.go",
  23. "dm.go",
  24. "filter.go",
  25. "http.go",
  26. "mask.go",
  27. "monitor.go",
  28. "report.go",
  29. "shield.go",
  30. "subject.go",
  31. "subtitle.go",
  32. "task.go",
  33. "transfer.go",
  34. ],
  35. importpath = "go-common/app/admin/main/dm/http",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/admin/main/dm/conf:go_default_library",
  40. "//app/admin/main/dm/model:go_default_library",
  41. "//app/admin/main/dm/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/xstr:go_default_library",
  49. ],
  50. )
  51. filegroup(
  52. name = "package-srcs",
  53. srcs = glob(["**"]),
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:private"],
  56. )
  57. filegroup(
  58. name = "all-srcs",
  59. srcs = [":package-srcs"],
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. )