BUILD 2.0 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 = [
  10. "dao_test.go",
  11. "mc_limit_test.go",
  12. "rpc_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/interface/main/videoup/conf:go_default_library",
  19. "//app/service/main/account/api:go_default_library",
  20. "//app/service/main/relation/model:go_default_library",
  21. "//app/service/main/relation/rpc/client:go_default_library",
  22. "//library/cache/memcache:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//vendor/github.com/bouk/monkey:go_default_library",
  25. "//vendor/github.com/golang/mock/gomock:go_default_library",
  26. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  27. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "dao.go",
  34. "mc_limit.go",
  35. "rpc.go",
  36. ],
  37. importpath = "go-common/app/interface/main/videoup/dao/account",
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. deps = [
  41. "//app/interface/main/videoup/conf:go_default_library",
  42. "//app/service/main/account/api:go_default_library",
  43. "//app/service/main/relation/model:go_default_library",
  44. "//app/service/main/relation/rpc/client:go_default_library",
  45. "//library/cache/memcache:go_default_library",
  46. "//library/ecode:go_default_library",
  47. "//library/log:go_default_library",
  48. "//library/net/http/blademaster:go_default_library",
  49. ],
  50. )
  51. filegroup(
  52. name = "package-srcs",
  53. srcs = glob(["**"]),
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:private"],
  56. )
  57. filegroup(
  58. name = "all-srcs",
  59. srcs = [":package-srcs"],
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. )