BUILD 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = ["permit_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//library/cache/memcache:go_default_library",
  15. "//library/container/pool:go_default_library",
  16. "//library/ecode:go_default_library",
  17. "//library/log:go_default_library",
  18. "//library/net/http/blademaster:go_default_library",
  19. "//library/net/netutil/breaker:go_default_library",
  20. "//library/time:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "permit.go",
  27. "session.go",
  28. ],
  29. importpath = "go-common/library/net/http/blademaster/middleware/permit",
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. deps = [
  33. "//app/admin/main/manager/api:go_default_library",
  34. "//library/cache/memcache:go_default_library",
  35. "//library/ecode:go_default_library",
  36. "//library/log:go_default_library",
  37. "//library/net/http/blademaster:go_default_library",
  38. "//library/net/metadata:go_default_library",
  39. "//library/net/rpc/warden:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. ],
  42. )
  43. go_test(
  44. name = "go_default_xtest",
  45. srcs = ["example_test.go"],
  46. tags = ["automanaged"],
  47. deps = [
  48. "//library/cache/memcache:go_default_library",
  49. "//library/container/pool:go_default_library",
  50. "//library/net/http/blademaster:go_default_library",
  51. "//library/net/http/blademaster/middleware/permit:go_default_library",
  52. "//library/net/metadata:go_default_library",
  53. "//library/net/netutil/breaker:go_default_library",
  54. "//library/time:go_default_library",
  55. ],
  56. )
  57. filegroup(
  58. name = "package-srcs",
  59. srcs = glob(["**"]),
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:private"],
  62. )
  63. filegroup(
  64. name = "all-srcs",
  65. srcs = [":package-srcs"],
  66. tags = ["automanaged"],
  67. visibility = ["//visibility:public"],
  68. )