BUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "dao.go",
  10. "mysql.go",
  11. "redisKey.go",
  12. ],
  13. importpath = "go-common/app/service/live/xanchor/dao",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/service/live/xanchor/api/grpc/v1:go_default_library",
  18. "//app/service/live/xanchor/conf:go_default_library",
  19. "//library/cache/redis:go_default_library",
  20. "//library/database/sql:go_default_library",
  21. "//library/ecode:go_default_library",
  22. "//library/log:go_default_library",
  23. "//vendor/github.com/pkg/errors:go_default_library",
  24. ],
  25. )
  26. filegroup(
  27. name = "package-srcs",
  28. srcs = glob(["**"]),
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:private"],
  31. )
  32. filegroup(
  33. name = "all-srcs",
  34. srcs = [
  35. ":package-srcs",
  36. "//app/service/live/xanchor/dao/consumer:all-srcs",
  37. ],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )