BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "backup-stream.go",
  11. "cache.go",
  12. "dao.cache.go",
  13. "dao.go",
  14. "http.go",
  15. "localcache.go",
  16. "main-stream.go",
  17. "mysql.go",
  18. "notify.go",
  19. "official-stream.go",
  20. "redis.go",
  21. "stream-change-log.go",
  22. "upstream-summary.go",
  23. ],
  24. importpath = "go-common/app/service/video/stream-mng/dao",
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:public"],
  27. deps = [
  28. "//app/service/video/stream-mng/common:go_default_library",
  29. "//app/service/video/stream-mng/conf:go_default_library",
  30. "//app/service/video/stream-mng/model:go_default_library",
  31. "//library/cache:go_default_library",
  32. "//library/cache/memcache:go_default_library",
  33. "//library/cache/redis:go_default_library",
  34. "//library/conf/env:go_default_library",
  35. "//library/database/sql:go_default_library",
  36. "//library/log:go_default_library",
  37. "//library/net/http/blademaster:go_default_library",
  38. "//library/net/metadata:go_default_library",
  39. "//library/stat/prom:go_default_library",
  40. "//library/sync/errgroup:go_default_library",
  41. "//library/sync/pipeline/fanout:go_default_library",
  42. "//vendor/github.com/bluele/gcache:go_default_library",
  43. "//vendor/github.com/pkg/errors:go_default_library",
  44. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  45. ],
  46. )
  47. filegroup(
  48. name = "package-srcs",
  49. srcs = glob(["**"]),
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:private"],
  52. )
  53. filegroup(
  54. name = "all-srcs",
  55. srcs = [":package-srcs"],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )
  59. go_test(
  60. name = "go_default_test",
  61. srcs = [
  62. "backup-stream_test.go",
  63. "cache_test.go",
  64. "dao.cache_test.go",
  65. "dao_test.go",
  66. "http_test.go",
  67. "localcache_test.go",
  68. "main-stream_test.go",
  69. "mysql_test.go",
  70. "notify_test.go",
  71. "official-stream_test.go",
  72. "redis_test.go",
  73. "stream-change-log_test.go",
  74. "upstream-summary_test.go",
  75. ],
  76. embed = [":go_default_library"],
  77. rundir = ".",
  78. tags = ["automanaged"],
  79. deps = [
  80. "//app/service/video/stream-mng/conf:go_default_library",
  81. "//app/service/video/stream-mng/model:go_default_library",
  82. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  83. ],
  84. )