BUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "dao.cache.go",
  11. "dao.go",
  12. "mc.cache.go",
  13. "mc.go",
  14. "mysql.go",
  15. "redis.go",
  16. ],
  17. importpath = "go-common/app/service/live/xrewardcenter/dao/anchorReward",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/service/live/xrewardcenter/conf:go_default_library",
  22. "//app/service/live/xrewardcenter/model/anchorTask:go_default_library",
  23. "//library/cache/memcache:go_default_library",
  24. "//library/cache/redis:go_default_library",
  25. "//library/database/orm:go_default_library",
  26. "//library/database/sql:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/net/http/blademaster:go_default_library",
  29. "//library/stat/prom:go_default_library",
  30. "//library/time:go_default_library",
  31. "//vendor/github.com/jinzhu/gorm:go_default_library",
  32. "//vendor/github.com/pkg/errors:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )
  47. go_test(
  48. name = "go_default_test",
  49. srcs = [
  50. "dao.cache_test.go",
  51. "dao_test.go",
  52. "mc.cache_test.go",
  53. "mc_test.go",
  54. "mysql_test.go",
  55. "redis_test.go",
  56. ],
  57. embed = [":go_default_library"],
  58. tags = ["automanaged"],
  59. deps = [
  60. "//app/service/live/xrewardcenter/conf:go_default_library",
  61. "//app/service/live/xrewardcenter/model/anchorTask:go_default_library",
  62. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  63. ],
  64. )