BUILD 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. "canal_test.go",
  11. "dao_test.go",
  12. "ecode_test.go",
  13. "need_test.go",
  14. "pprof_test.go",
  15. "upload_test.go",
  16. "ut_app_test.go",
  17. "ut_rank_test.go",
  18. "ut_test.go",
  19. ],
  20. embed = [":go_default_library"],
  21. rundir = ".",
  22. tags = ["automanaged"],
  23. deps = [
  24. "//app/admin/main/apm/conf:go_default_library",
  25. "//app/admin/main/apm/model/canal:go_default_library",
  26. "//app/admin/main/apm/model/need:go_default_library",
  27. "//vendor/github.com/bouk/monkey:go_default_library",
  28. "//vendor/github.com/jinzhu/gorm:go_default_library",
  29. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  30. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  31. ],
  32. )
  33. go_library(
  34. name = "go_default_library",
  35. srcs = [
  36. "canal.go",
  37. "dao.go",
  38. "ecode.go",
  39. "monkey.go",
  40. "need.go",
  41. "pprof.go",
  42. "upload.go",
  43. "ut.go",
  44. "ut_app.go",
  45. "ut_rank.go",
  46. ],
  47. importpath = "go-common/app/admin/main/apm/dao",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//app/admin/main/apm/conf:go_default_library",
  51. "//app/admin/main/apm/model/canal:go_default_library",
  52. "//app/admin/main/apm/model/ecode:go_default_library",
  53. "//app/admin/main/apm/model/need:go_default_library",
  54. "//app/admin/main/apm/model/pprof:go_default_library",
  55. "//app/admin/main/apm/model/ut:go_default_library",
  56. "//library/cache/redis:go_default_library",
  57. "//library/conf/env:go_default_library",
  58. "//library/database/orm:go_default_library",
  59. "//library/ecode:go_default_library",
  60. "//library/log:go_default_library",
  61. "//library/net/http/blademaster:go_default_library",
  62. "//vendor/github.com/bouk/monkey:go_default_library",
  63. "//vendor/github.com/jinzhu/gorm:go_default_library",
  64. "//vendor/github.com/pkg/errors:go_default_library",
  65. ],
  66. )
  67. filegroup(
  68. name = "package-srcs",
  69. srcs = glob(["**"]),
  70. tags = ["automanaged"],
  71. visibility = ["//visibility:private"],
  72. )
  73. filegroup(
  74. name = "all-srcs",
  75. srcs = [
  76. ":package-srcs",
  77. "//app/admin/main/apm/dao/mock:all-srcs",
  78. ],
  79. tags = ["automanaged"],
  80. visibility = ["//visibility:public"],
  81. )