120 lines
3.9 KiB
Python
120 lines
3.9 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_test",
|
|
"go_library",
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"direction_test.go",
|
|
"engine_test.go",
|
|
"flow_resource_test.go",
|
|
"flow_test.go",
|
|
"log_test.go",
|
|
"message_test.go",
|
|
"monitor_test.go",
|
|
"net_cache_test.go",
|
|
"net_control_test.go",
|
|
"net_test.go",
|
|
"report_test.go",
|
|
"role_test.go",
|
|
"service_test.go",
|
|
"task_config_test.go",
|
|
"token_test.go",
|
|
"transition_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
rundir = ".",
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//app/admin/main/aegis/conf:go_default_library",
|
|
"//app/admin/main/aegis/model:go_default_library",
|
|
"//app/admin/main/aegis/model/common:go_default_library",
|
|
"//app/admin/main/aegis/model/monitor:go_default_library",
|
|
"//app/admin/main/aegis/model/net:go_default_library",
|
|
"//app/admin/main/aegis/model/resource:go_default_library",
|
|
"//app/admin/main/aegis/model/task:go_default_library",
|
|
"//library/database/orm:go_default_library",
|
|
"//vendor/github.com/jinzhu/gorm:go_default_library",
|
|
"//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"business.go",
|
|
"direction.go",
|
|
"engine.go",
|
|
"extra_func.go",
|
|
"flow.go",
|
|
"flow_resource.go",
|
|
"log.go",
|
|
"message.go",
|
|
"monitor.go",
|
|
"net.go",
|
|
"net_cache.go",
|
|
"net_control.go",
|
|
"report.go",
|
|
"resource.go",
|
|
"role.go",
|
|
"service.go",
|
|
"svg.go",
|
|
"task_config.go",
|
|
"task_consumer.go",
|
|
"task_dispatch.go",
|
|
"token.go",
|
|
"token_bind.go",
|
|
"transition.go",
|
|
],
|
|
importpath = "go-common/app/admin/main/aegis/service",
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//app/admin/main/aegis/conf:go_default_library",
|
|
"//app/admin/main/aegis/dao/gorm:go_default_library",
|
|
"//app/admin/main/aegis/dao/http:go_default_library",
|
|
"//app/admin/main/aegis/dao/mc:go_default_library",
|
|
"//app/admin/main/aegis/dao/mysql:go_default_library",
|
|
"//app/admin/main/aegis/dao/redis:go_default_library",
|
|
"//app/admin/main/aegis/dao/rpc:go_default_library",
|
|
"//app/admin/main/aegis/model:go_default_library",
|
|
"//app/admin/main/aegis/model/business:go_default_library",
|
|
"//app/admin/main/aegis/model/common:go_default_library",
|
|
"//app/admin/main/aegis/model/databus:go_default_library",
|
|
"//app/admin/main/aegis/model/middleware:go_default_library",
|
|
"//app/admin/main/aegis/model/monitor:go_default_library",
|
|
"//app/admin/main/aegis/model/net:go_default_library",
|
|
"//app/admin/main/aegis/model/resource:go_default_library",
|
|
"//app/admin/main/aegis/model/svg:go_default_library",
|
|
"//app/admin/main/aegis/model/task:go_default_library",
|
|
"//app/service/main/up/api/v1:go_default_library",
|
|
"//library/cache/redis:go_default_library",
|
|
"//library/ecode:go_default_library",
|
|
"//library/log:go_default_library",
|
|
"//library/queue/databus:go_default_library",
|
|
"//library/queue/databus/report:go_default_library",
|
|
"//library/sync/errgroup:go_default_library",
|
|
"//library/sync/pipeline/fanout:go_default_library",
|
|
"//library/xstr:go_default_library",
|
|
"//vendor/github.com/jinzhu/gorm:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|