BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "http.go",
  10. "up.go",
  11. "up_card.go",
  12. "up_group.go",
  13. "up_stat.go",
  14. "up_switch.go",
  15. ],
  16. importpath = "go-common/app/service/main/up/server/http",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/service/main/up/api/v1:go_default_library",
  21. "//app/service/main/up/conf:go_default_library",
  22. "//app/service/main/up/model:go_default_library",
  23. "//app/service/main/up/service:go_default_library",
  24. "//library/ecode:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/net/http/blademaster:go_default_library",
  27. "//library/net/http/blademaster/middleware/permit:go_default_library",
  28. "//library/net/http/blademaster/middleware/verify:go_default_library",
  29. "//library/net/metadata:go_default_library",
  30. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  31. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [":package-srcs"],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )