BUILD 1.8 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. "depend_test.go",
  12. "localcache_test.go",
  13. "memcache_test.go",
  14. "mysql_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/service/main/usersuit/conf:go_default_library",
  21. "//app/service/main/usersuit/model:go_default_library",
  22. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  23. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  24. ],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [
  29. "dao.go",
  30. "depend.go",
  31. "localcache.go",
  32. "memcache.go",
  33. "mysql.go",
  34. ],
  35. importmap = "go-common/app/service/main/usersuit/dao/medal",
  36. importpath = "go-common/app/service/main/usersuit/dao/medal",
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "//app/service/main/usersuit/conf:go_default_library",
  41. "//app/service/main/usersuit/model:go_default_library",
  42. "//library/cache/memcache:go_default_library",
  43. "//library/database/sql:go_default_library",
  44. "//library/log:go_default_library",
  45. "//library/net/http/blademaster:go_default_library",
  46. "//library/stat/prom:go_default_library",
  47. "//vendor/github.com/bluele/gcache:go_default_library",
  48. "//vendor/github.com/pkg/errors: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. )