120 lines
3.5 KiB
Python
120 lines
3.5 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 = [
|
||
|
"bigdata_test.go",
|
||
|
"cards_test.go",
|
||
|
"creation_mc_test.go",
|
||
|
"creation_test.go",
|
||
|
"dao_test.go",
|
||
|
"list_mc_test.go",
|
||
|
"memcached_test.go",
|
||
|
"mysql_article_test.go",
|
||
|
"mysql_author_test.go",
|
||
|
"mysql_list_test.go",
|
||
|
"mysql_recommend_test.go",
|
||
|
"mysql_test.go",
|
||
|
"mysql_upper_test.go",
|
||
|
"rank_test.go",
|
||
|
"redis_like_test.go",
|
||
|
"redis_sort_test.go",
|
||
|
"redis_test.go",
|
||
|
],
|
||
|
embed = [":go_default_library"],
|
||
|
rundir = ".",
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//app/interface/openplatform/article/conf:go_default_library",
|
||
|
"//app/interface/openplatform/article/model:go_default_library",
|
||
|
"//library/cache/redis:go_default_library",
|
||
|
"//library/ecode:go_default_library",
|
||
|
"//library/time:go_default_library",
|
||
|
"//vendor/github.com/go-sql-driver/mysql:go_default_library",
|
||
|
"//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
|
||
|
"//vendor/gopkg.in/h2non/gock.v1:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = [
|
||
|
"activity.go",
|
||
|
"anniversary_mc.go",
|
||
|
"author.go",
|
||
|
"berserker.go",
|
||
|
"bfs.go",
|
||
|
"bigdata.go",
|
||
|
"cache.go",
|
||
|
"cards.go",
|
||
|
"creation.go",
|
||
|
"creation_mc.go",
|
||
|
"dao.cache.go",
|
||
|
"dao.go",
|
||
|
"databus.go",
|
||
|
"dynamic.go",
|
||
|
"list_mc.go",
|
||
|
"mc.cache.go",
|
||
|
"media.go",
|
||
|
"memcached.go",
|
||
|
"message.go",
|
||
|
"mysql.go",
|
||
|
"mysql_article.go",
|
||
|
"mysql_author.go",
|
||
|
"mysql_complaint.go",
|
||
|
"mysql_draft.go",
|
||
|
"mysql_list.go",
|
||
|
"mysql_recommend.go",
|
||
|
"mysql_upper.go",
|
||
|
"rank.go",
|
||
|
"redis.go",
|
||
|
"redis_like.go",
|
||
|
"redis_read.go",
|
||
|
"redis_sort.go",
|
||
|
],
|
||
|
importpath = "go-common/app/interface/openplatform/article/dao",
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//app/interface/main/creative/model/data:go_default_library",
|
||
|
"//app/interface/openplatform/article/conf:go_default_library",
|
||
|
"//app/interface/openplatform/article/model:go_default_library",
|
||
|
"//library/cache:go_default_library",
|
||
|
"//library/cache/memcache:go_default_library",
|
||
|
"//library/cache/redis:go_default_library",
|
||
|
"//library/conf/env:go_default_library",
|
||
|
"//library/database/hbase.v2:go_default_library",
|
||
|
"//library/database/sql:go_default_library",
|
||
|
"//library/ecode:go_default_library",
|
||
|
"//library/log:go_default_library",
|
||
|
"//library/net/http/blademaster:go_default_library",
|
||
|
"//library/net/metadata:go_default_library",
|
||
|
"//library/queue/databus:go_default_library",
|
||
|
"//library/stat/prom:go_default_library",
|
||
|
"//library/sync/errgroup:go_default_library",
|
||
|
"//library/time:go_default_library",
|
||
|
"//library/xstr:go_default_library",
|
||
|
"//vendor/golang.org/x/sync/singleflight:go_default_library",
|
||
|
"@org_golang_x_net//context: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"],
|
||
|
)
|