BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 = ["server.go"],
  9. importpath = "go-common/app/service/main/relation/server/grpc",
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//app/service/main/relation/api:go_default_library",
  14. "//app/service/main/relation/conf:go_default_library",
  15. "//app/service/main/relation/model:go_default_library",
  16. "//app/service/main/relation/service:go_default_library",
  17. "//library/net/rpc/warden:go_default_library",
  18. ],
  19. )
  20. filegroup(
  21. name = "package-srcs",
  22. srcs = glob(["**"]),
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:private"],
  25. )
  26. filegroup(
  27. name = "all-srcs",
  28. srcs = [":package-srcs"],
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = ["server_test.go"],
  35. embed = [":go_default_library"],
  36. tags = ["automanaged"],
  37. deps = [
  38. "//app/service/main/relation/api:go_default_library",
  39. "//app/service/main/relation/conf:go_default_library",
  40. "//app/service/main/relation/model:go_default_library",
  41. "//app/service/main/relation/service:go_default_library",
  42. "//library/net/rpc/warden:go_default_library",
  43. "//library/time:go_default_library",
  44. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  45. ],
  46. )