BUILD 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. "associate_test.go",
  11. "business_test.go",
  12. "coupon_old_test.go",
  13. "coupon_test.go",
  14. "dao_test.go",
  15. "http_test.go",
  16. "memcache_test.go",
  17. "mysql_test.go",
  18. "oldvip_test.go",
  19. "order_test.go",
  20. "push_test.go",
  21. "redis_test.go",
  22. "resource_test.go",
  23. "sync_test.go",
  24. "vip_test.go",
  25. ],
  26. embed = [":go_default_library"],
  27. rundir = ".",
  28. tags = ["automanaged"],
  29. deps = [
  30. "//app/job/main/vip/conf:go_default_library",
  31. "//app/job/main/vip/model:go_default_library",
  32. "//library/database/sql:go_default_library",
  33. "//library/time:go_default_library",
  34. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  35. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  36. ],
  37. )
  38. go_library(
  39. name = "go_default_library",
  40. srcs = [
  41. "associate.go",
  42. "business.go",
  43. "coupon.go",
  44. "coupon_old.go",
  45. "dao.go",
  46. "http.go",
  47. "memcache.go",
  48. "mysql.go",
  49. "oldvip.go",
  50. "order.go",
  51. "push.go",
  52. "redis.go",
  53. "resource.go",
  54. "sync.go",
  55. "vip.go",
  56. ],
  57. importpath = "go-common/app/job/main/vip/dao",
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:public"],
  60. deps = [
  61. "//app/job/main/vip/conf:go_default_library",
  62. "//app/job/main/vip/model:go_default_library",
  63. "//library/cache/memcache:go_default_library",
  64. "//library/cache/redis:go_default_library",
  65. "//library/database/sql:go_default_library",
  66. "//library/ecode:go_default_library",
  67. "//library/log:go_default_library",
  68. "//library/net/http/blademaster:go_default_library",
  69. "//library/stat/prom:go_default_library",
  70. "//library/time:go_default_library",
  71. "//library/xstr:go_default_library",
  72. "//vendor/github.com/google/uuid:go_default_library",
  73. "//vendor/github.com/pkg/errors:go_default_library",
  74. ],
  75. )
  76. filegroup(
  77. name = "package-srcs",
  78. srcs = glob(["**"]),
  79. tags = ["automanaged"],
  80. visibility = ["//visibility:private"],
  81. )
  82. filegroup(
  83. name = "all-srcs",
  84. srcs = [":package-srcs"],
  85. tags = ["automanaged"],
  86. visibility = ["//visibility:public"],
  87. )