BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "dao.go",
  10. "hbase.go",
  11. "http.go",
  12. "memcache.go",
  13. "redis.go",
  14. ],
  15. importpath = "go-common/app/service/main/secure/dao",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/service/main/secure/conf:go_default_library",
  20. "//app/service/main/secure/model:go_default_library",
  21. "//library/cache/memcache:go_default_library",
  22. "//library/cache/redis:go_default_library",
  23. "//library/database/hbase.v2:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/net/http/blademaster:go_default_library",
  27. "//library/time:go_default_library",
  28. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  29. ],
  30. )
  31. go_test(
  32. name = "go_default_test",
  33. srcs = [
  34. "dao_test.go",
  35. "hbase_test.go",
  36. "http_test.go",
  37. "memcache_test.go",
  38. "redis_test.go",
  39. ],
  40. embed = [":go_default_library"],
  41. rundir = ".",
  42. tags = ["automanaged"],
  43. deps = [
  44. "//app/service/main/secure/conf:go_default_library",
  45. "//app/service/main/secure/model:go_default_library",
  46. "//library/cache/memcache:go_default_library",
  47. "//library/time:go_default_library",
  48. "//vendor/github.com/bouk/monkey:go_default_library",
  49. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )