BUILD 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. "direction_test.go",
  11. "engine_test.go",
  12. "flow_resource_test.go",
  13. "flow_test.go",
  14. "log_test.go",
  15. "message_test.go",
  16. "monitor_test.go",
  17. "net_cache_test.go",
  18. "net_control_test.go",
  19. "net_test.go",
  20. "report_test.go",
  21. "role_test.go",
  22. "service_test.go",
  23. "task_config_test.go",
  24. "token_test.go",
  25. "transition_test.go",
  26. ],
  27. embed = [":go_default_library"],
  28. rundir = ".",
  29. tags = ["automanaged"],
  30. deps = [
  31. "//app/admin/main/aegis/conf:go_default_library",
  32. "//app/admin/main/aegis/model:go_default_library",
  33. "//app/admin/main/aegis/model/common:go_default_library",
  34. "//app/admin/main/aegis/model/monitor:go_default_library",
  35. "//app/admin/main/aegis/model/net:go_default_library",
  36. "//app/admin/main/aegis/model/resource:go_default_library",
  37. "//app/admin/main/aegis/model/task:go_default_library",
  38. "//library/database/orm:go_default_library",
  39. "//vendor/github.com/jinzhu/gorm:go_default_library",
  40. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  41. ],
  42. )
  43. go_library(
  44. name = "go_default_library",
  45. srcs = [
  46. "business.go",
  47. "direction.go",
  48. "engine.go",
  49. "extra_func.go",
  50. "flow.go",
  51. "flow_resource.go",
  52. "log.go",
  53. "message.go",
  54. "monitor.go",
  55. "net.go",
  56. "net_cache.go",
  57. "net_control.go",
  58. "report.go",
  59. "resource.go",
  60. "role.go",
  61. "service.go",
  62. "svg.go",
  63. "task_config.go",
  64. "task_consumer.go",
  65. "task_dispatch.go",
  66. "token.go",
  67. "token_bind.go",
  68. "transition.go",
  69. ],
  70. importpath = "go-common/app/admin/main/aegis/service",
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. deps = [
  74. "//app/admin/main/aegis/conf:go_default_library",
  75. "//app/admin/main/aegis/dao/gorm:go_default_library",
  76. "//app/admin/main/aegis/dao/http:go_default_library",
  77. "//app/admin/main/aegis/dao/mc:go_default_library",
  78. "//app/admin/main/aegis/dao/mysql:go_default_library",
  79. "//app/admin/main/aegis/dao/redis:go_default_library",
  80. "//app/admin/main/aegis/dao/rpc:go_default_library",
  81. "//app/admin/main/aegis/model:go_default_library",
  82. "//app/admin/main/aegis/model/business:go_default_library",
  83. "//app/admin/main/aegis/model/common:go_default_library",
  84. "//app/admin/main/aegis/model/databus:go_default_library",
  85. "//app/admin/main/aegis/model/middleware:go_default_library",
  86. "//app/admin/main/aegis/model/monitor:go_default_library",
  87. "//app/admin/main/aegis/model/net:go_default_library",
  88. "//app/admin/main/aegis/model/resource:go_default_library",
  89. "//app/admin/main/aegis/model/svg:go_default_library",
  90. "//app/admin/main/aegis/model/task:go_default_library",
  91. "//app/service/main/up/api/v1:go_default_library",
  92. "//library/cache/redis:go_default_library",
  93. "//library/ecode:go_default_library",
  94. "//library/log:go_default_library",
  95. "//library/queue/databus:go_default_library",
  96. "//library/queue/databus/report:go_default_library",
  97. "//library/sync/errgroup:go_default_library",
  98. "//library/sync/pipeline/fanout:go_default_library",
  99. "//library/xstr:go_default_library",
  100. "//vendor/github.com/jinzhu/gorm:go_default_library",
  101. ],
  102. )
  103. filegroup(
  104. name = "package-srcs",
  105. srcs = glob(["**"]),
  106. tags = ["automanaged"],
  107. visibility = ["//visibility:private"],
  108. )
  109. filegroup(
  110. name = "all-srcs",
  111. srcs = [":package-srcs"],
  112. tags = ["automanaged"],
  113. visibility = ["//visibility:public"],
  114. )