BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "service.go",
  11. "vip.go",
  12. ],
  13. importpath = "go-common/app/job/main/card/service",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/job/main/card/conf:go_default_library",
  18. "//app/job/main/card/dao:go_default_library",
  19. "//app/job/main/card/model:go_default_library",
  20. "//app/service/main/card/api/grpc/v1:go_default_library",
  21. "//app/service/main/card/model:go_default_library",
  22. "//app/service/main/vip/model:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. go_test(
  40. name = "go_default_test",
  41. srcs = ["vip_test.go"],
  42. embed = [":go_default_library"],
  43. rundir = ".",
  44. tags = ["automanaged"],
  45. deps = [
  46. "//app/job/main/card/conf:go_default_library",
  47. "//app/job/main/card/model:go_default_library",
  48. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  49. ],
  50. )