BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "exp.go",
  10. "http.go",
  11. ],
  12. importpath = "go-common/app/service/live/userexp/http",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/service/live/userexp/conf:go_default_library",
  17. "//app/service/live/userexp/model:go_default_library",
  18. "//app/service/live/userexp/service:go_default_library",
  19. "//library/ecode:go_default_library",
  20. "//library/log:go_default_library",
  21. "//library/net/http/blademaster:go_default_library",
  22. "//library/net/metadata:go_default_library",
  23. "//library/xstr:go_default_library",
  24. ],
  25. )
  26. go_test(
  27. name = "go_default_test",
  28. srcs = ["http_test.go"],
  29. embed = [":go_default_library"],
  30. rundir = ".",
  31. tags = ["automanaged"],
  32. deps = [
  33. "//app/service/live/userexp/conf:go_default_library",
  34. "//app/service/live/userexp/model:go_default_library",
  35. "//app/service/live/userexp/service:go_default_library",
  36. "//library/net/http/blademaster:go_default_library",
  37. ],
  38. )
  39. filegroup(
  40. name = "package-srcs",
  41. srcs = glob(["**"]),
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:private"],
  44. )
  45. filegroup(
  46. name = "all-srcs",
  47. srcs = [":package-srcs"],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )