BUILD 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 = [
  10. "audit.go",
  11. "dao.go",
  12. "localcache.go",
  13. "memcache.go",
  14. "mysql.go",
  15. "prompt_redis.go",
  16. "recent_redis.go",
  17. "redis.go",
  18. "relation_log.go",
  19. ],
  20. importpath = "go-common/app/service/main/relation/dao",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = [
  24. "//app/service/main/relation/conf:go_default_library",
  25. "//app/service/main/relation/model:go_default_library",
  26. "//app/service/main/relation/model/i64b:go_default_library",
  27. "//library/cache/memcache:go_default_library",
  28. "//library/cache/redis:go_default_library",
  29. "//library/database/sql:go_default_library",
  30. "//library/ecode:go_default_library",
  31. "//library/log:go_default_library",
  32. "//library/net/http/blademaster:go_default_library",
  33. "//library/queue/databus/report:go_default_library",
  34. "//library/stat/prom:go_default_library",
  35. "//library/time:go_default_library",
  36. "//library/xstr:go_default_library",
  37. "//vendor/github.com/bluele/gcache:go_default_library",
  38. "//vendor/github.com/pkg/errors:go_default_library",
  39. ],
  40. )
  41. filegroup(
  42. name = "package-srcs",
  43. srcs = glob(["**"]),
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:private"],
  46. )
  47. filegroup(
  48. name = "all-srcs",
  49. srcs = [":package-srcs"],
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:public"],
  52. )
  53. go_test(
  54. name = "go_default_test",
  55. srcs = [
  56. "audit_test.go",
  57. "dao_test.go",
  58. "localcache_test.go",
  59. "memcache_test.go",
  60. "mysql_test.go",
  61. "prompt_redis_test.go",
  62. "recent_redis_test.go",
  63. "redis_test.go",
  64. "relation_log_test.go",
  65. ],
  66. embed = [":go_default_library"],
  67. rundir = ".",
  68. tags = ["automanaged"],
  69. deps = [
  70. "//app/service/main/relation/conf:go_default_library",
  71. "//app/service/main/relation/model:go_default_library",
  72. "//app/service/main/relation/model/i64b:go_default_library",
  73. "//library/time:go_default_library",
  74. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  75. ],
  76. )