BUILD 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. "app_test.go",
  11. "canal_test.go",
  12. "dapper_test.go",
  13. "databus_test.go",
  14. "members_test.go",
  15. "monitor_test.go",
  16. "need_test.go",
  17. "pprof_test.go",
  18. "prometheus_test.go",
  19. "service_test.go",
  20. "tree_test.go",
  21. "upload_test.go",
  22. "user_test.go",
  23. "ut_dash_test.go",
  24. "ut_rank_test.go",
  25. "ut_report_test.go",
  26. "ut_test.go",
  27. ],
  28. embed = [":go_default_library"],
  29. rundir = ".",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/apm/conf:go_default_library",
  33. "//app/admin/main/apm/dao:go_default_library",
  34. "//app/admin/main/apm/dao/mock:go_default_library",
  35. "//app/admin/main/apm/model/canal:go_default_library",
  36. "//app/admin/main/apm/model/monitor:go_default_library",
  37. "//app/admin/main/apm/model/need:go_default_library",
  38. "//app/admin/main/apm/model/pprof:go_default_library",
  39. "//app/admin/main/apm/model/ut:go_default_library",
  40. "//library/log:go_default_library",
  41. "//vendor/github.com/BurntSushi/toml:go_default_library",
  42. "//vendor/github.com/bouk/monkey:go_default_library",
  43. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  44. ],
  45. )
  46. go_library(
  47. name = "go_default_library",
  48. srcs = [
  49. "alarm.go",
  50. "app.go",
  51. "canal.go",
  52. "dapper.go",
  53. "databus.go",
  54. "discovery.go",
  55. "ecode.go",
  56. "log.go",
  57. "members.go",
  58. "monitor.go",
  59. "need.go",
  60. "open.go",
  61. "platform.go",
  62. "pprof.go",
  63. "prometheus.go",
  64. "qywechat.go",
  65. "service.go",
  66. "task.go",
  67. "tree.go",
  68. "upload.go",
  69. "user.go",
  70. "ut.go",
  71. "ut_app.go",
  72. "ut_dash.go",
  73. "ut_rank.go",
  74. "ut_report.go",
  75. ],
  76. importpath = "go-common/app/admin/main/apm/service",
  77. tags = ["automanaged"],
  78. deps = [
  79. "//app/admin/main/apm/conf:go_default_library",
  80. "//app/admin/main/apm/dao:go_default_library",
  81. "//app/admin/main/apm/model/app:go_default_library",
  82. "//app/admin/main/apm/model/canal:go_default_library",
  83. "//app/admin/main/apm/model/databus:go_default_library",
  84. "//app/admin/main/apm/model/discovery:go_default_library",
  85. "//app/admin/main/apm/model/ecode:go_default_library",
  86. "//app/admin/main/apm/model/log:go_default_library",
  87. "//app/admin/main/apm/model/monitor:go_default_library",
  88. "//app/admin/main/apm/model/need:go_default_library",
  89. "//app/admin/main/apm/model/pprof:go_default_library",
  90. "//app/admin/main/apm/model/tree:go_default_library",
  91. "//app/admin/main/apm/model/user:go_default_library",
  92. "//app/admin/main/apm/model/ut:go_default_library",
  93. "//app/admin/main/config/model:go_default_library",
  94. "//app/tool/saga/service/gitlab:go_default_library",
  95. "//library/conf/env:go_default_library",
  96. "//library/ecode:go_default_library",
  97. "//library/log:go_default_library",
  98. "//library/naming:go_default_library",
  99. "//library/net/http/blademaster:go_default_library",
  100. "//library/queue/databus/report:go_default_library",
  101. "//library/sync/errgroup.v2:go_default_library",
  102. "//library/time:go_default_library",
  103. "//vendor/github.com/BurntSushi/toml:go_default_library",
  104. "//vendor/github.com/Shopify/sarama:go_default_library",
  105. "//vendor/github.com/bsm/sarama-cluster:go_default_library",
  106. "//vendor/github.com/jinzhu/gorm:go_default_library",
  107. "//vendor/github.com/pkg/errors:go_default_library",
  108. "//vendor/github.com/robfig/cron:go_default_library",
  109. "//vendor/github.com/smartystreets/goconvey/web/server/contract:go_default_library",
  110. "//vendor/github.com/smartystreets/goconvey/web/server/parser:go_default_library",
  111. "@com_github_gogo_protobuf//sortkeys:go_default_library",
  112. ],
  113. )
  114. filegroup(
  115. name = "package-srcs",
  116. srcs = glob(["**"]),
  117. tags = ["automanaged"],
  118. visibility = ["//visibility:private"],
  119. )
  120. filegroup(
  121. name = "all-srcs",
  122. srcs = [":package-srcs"],
  123. tags = ["automanaged"],
  124. visibility = ["//visibility:public"],
  125. )