BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 = ["mail_api_client.go"],
  10. importpath = "go-common/app/service/main/vip/dao/mail-api-client",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//library/net/http/blademaster:go_default_library",
  15. "//vendor/github.com/pkg/errors:go_default_library",
  16. ],
  17. )
  18. filegroup(
  19. name = "package-srcs",
  20. srcs = glob(["**"]),
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:private"],
  23. )
  24. filegroup(
  25. name = "all-srcs",
  26. srcs = [":package-srcs"],
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. )
  30. go_test(
  31. name = "go_default_test",
  32. srcs = ["mail_api_client_test.go"],
  33. embed = [":go_default_library"],
  34. tags = ["automanaged"],
  35. deps = [
  36. "//library/net/http/blademaster:go_default_library",
  37. "//library/net/netutil/breaker:go_default_library",
  38. "//library/time:go_default_library",
  39. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  40. ],
  41. )