BUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = ["auth_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//library/ecode:go_default_library",
  15. "//library/log:go_default_library",
  16. "//library/net/http/blademaster:go_default_library",
  17. "//library/net/metadata:go_default_library",
  18. "//library/net/netutil/breaker:go_default_library",
  19. "//library/net/rpc/warden:go_default_library",
  20. "//library/time:go_default_library",
  21. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = ["auth.go"],
  27. importpath = "go-common/library/net/http/blademaster/middleware/auth",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "//app/service/main/identify/api/grpc:go_default_library",
  32. "//library/ecode:go_default_library",
  33. "//library/net/http/blademaster:go_default_library",
  34. "//library/net/metadata:go_default_library",
  35. "//library/net/rpc/warden:go_default_library",
  36. "//vendor/github.com/pkg/errors: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. )
  51. go_test(
  52. name = "go_default_xtest",
  53. srcs = ["example_test.go"],
  54. tags = ["automanaged"],
  55. deps = [
  56. "//library/net/http/blademaster:go_default_library",
  57. "//library/net/http/blademaster/middleware/auth:go_default_library",
  58. "//library/net/metadata:go_default_library",
  59. "//library/net/rpc/warden:go_default_library",
  60. ],
  61. )