BUILD 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "app.go",
  11. "canal.go",
  12. "dapper.go",
  13. "databus.go",
  14. "discovery.go",
  15. "ecode.go",
  16. "http.go",
  17. "monitor.go",
  18. "need.go",
  19. "open.go",
  20. "platform.go",
  21. "pprof.go",
  22. "rank.go",
  23. "upload.go",
  24. "user.go",
  25. "ut.go",
  26. "ut_app.go",
  27. "ut_dash.go",
  28. ],
  29. importpath = "go-common/app/admin/main/apm/http",
  30. tags = ["automanaged"],
  31. deps = [
  32. "//app/admin/main/apm/conf:go_default_library",
  33. "//app/admin/main/apm/model/app:go_default_library",
  34. "//app/admin/main/apm/model/canal:go_default_library",
  35. "//app/admin/main/apm/model/databus:go_default_library",
  36. "//app/admin/main/apm/model/ecode: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/user:go_default_library",
  40. "//app/admin/main/apm/model/ut:go_default_library",
  41. "//app/admin/main/apm/service:go_default_library",
  42. "//app/tool/saga/model:go_default_library",
  43. "//library/conf/env:go_default_library",
  44. "//library/ecode:go_default_library",
  45. "//library/log:go_default_library",
  46. "//library/net/http/blademaster:go_default_library",
  47. "//library/net/http/blademaster/binding:go_default_library",
  48. "//library/net/http/blademaster/middleware/permit:go_default_library",
  49. "//vendor/github.com/jinzhu/gorm: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. )
  64. go_test(
  65. name = "go_default_test",
  66. srcs = [
  67. "apply_test.go",
  68. "canal_test.go",
  69. "ecode_test.go",
  70. "need_test.go",
  71. "notify_test.go",
  72. "process_test.go",
  73. "upload_test.go",
  74. "user_test.go",
  75. ],
  76. embed = [":go_default_library"],
  77. rundir = ".",
  78. tags = ["automanaged"],
  79. deps = [
  80. "//app/admin/main/apm/conf:go_default_library",
  81. "//app/admin/main/apm/model/canal:go_default_library",
  82. "//app/admin/main/apm/model/need:go_default_library",
  83. "//app/admin/main/apm/service:go_default_library",
  84. "//library/log:go_default_library",
  85. "//library/net/http/blademaster:go_default_library",
  86. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  87. ],
  88. )