BUILD 1.9 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 = [
  10. "account_test.go",
  11. "audit_test.go",
  12. "bilibili_card_test.go",
  13. "dao_test.go",
  14. "databus_test.go",
  15. "memcache_test.go",
  16. "mysql_test.go",
  17. "qcloud_test.go",
  18. "redis_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. rundir = ".",
  22. tags = ["automanaged"],
  23. deps = [
  24. "//app/service/main/spy/conf:go_default_library",
  25. "//app/service/main/spy/model:go_default_library",
  26. "//library/time:go_default_library",
  27. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  28. ],
  29. )
  30. go_library(
  31. name = "go_default_library",
  32. srcs = [
  33. "account.go",
  34. "audit.go",
  35. "bilibili_card.go",
  36. "dao.go",
  37. "databus.go",
  38. "memcache.go",
  39. "mysql.go",
  40. "qcloud.go",
  41. "redis.go",
  42. ],
  43. importpath = "go-common/app/service/main/spy/dao",
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. deps = [
  47. "//app/service/main/spy/conf:go_default_library",
  48. "//app/service/main/spy/model:go_default_library",
  49. "//library/cache/memcache:go_default_library",
  50. "//library/cache/redis:go_default_library",
  51. "//library/database/sql:go_default_library",
  52. "//library/ecode:go_default_library",
  53. "//library/log:go_default_library",
  54. "//library/net/http/blademaster:go_default_library",
  55. "//library/queue/databus:go_default_library",
  56. ],
  57. )
  58. filegroup(
  59. name = "package-srcs",
  60. srcs = glob(["**"]),
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:private"],
  63. )
  64. filegroup(
  65. name = "all-srcs",
  66. srcs = [":package-srcs"],
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:public"],
  69. )