BUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "canal.go",
  11. "hbase.go",
  12. "instance.go",
  13. "master.go",
  14. "target.go",
  15. "tidb_check.go",
  16. "tidb_data.go",
  17. "tidb_instance.go",
  18. "tidb_proc.go",
  19. ],
  20. importpath = "go-common/app/infra/canal/service",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = [
  24. "//app/infra/canal/conf:go_default_library",
  25. "//app/infra/canal/dao:go_default_library",
  26. "//app/infra/canal/infoc:go_default_library",
  27. "//app/infra/canal/model:go_default_library",
  28. "//app/infra/canal/service/reader:go_default_library",
  29. "//library/conf/env:go_default_library",
  30. "//library/database/hbase.v2:go_default_library",
  31. "//library/log:go_default_library",
  32. "//library/net/http/blademaster:go_default_library",
  33. "//library/net/netutil:go_default_library",
  34. "//library/queue/databus:go_default_library",
  35. "//library/stat/prom:go_default_library",
  36. "//vendor/github.com/juju/errors:go_default_library",
  37. "//vendor/github.com/pingcap/tidb-tools/tidb_binlog/slave_binlog_proto/go-binlog:go_default_library",
  38. "//vendor/github.com/pkg/errors:go_default_library",
  39. "//vendor/github.com/siddontang/go-mysql/canal:go_default_library",
  40. "//vendor/github.com/siddontang/go-mysql/client:go_default_library",
  41. "//vendor/github.com/siddontang/go-mysql/mysql:go_default_library",
  42. "//vendor/github.com/siddontang/go-mysql/replication:go_default_library",
  43. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  44. ],
  45. )
  46. filegroup(
  47. name = "package-srcs",
  48. srcs = glob(["**"]),
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:private"],
  51. )
  52. filegroup(
  53. name = "all-srcs",
  54. srcs = [
  55. ":package-srcs",
  56. "//app/infra/canal/service/reader:all-srcs",
  57. ],
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:public"],
  60. )
  61. go_test(
  62. name = "go_default_test",
  63. srcs = ["tidb_data_test.go"],
  64. embed = [":go_default_library"],
  65. rundir = ".",
  66. tags = ["automanaged"],
  67. deps = [
  68. "//app/infra/canal/model:go_default_library",
  69. "//vendor/github.com/pingcap/tidb-tools/tidb_binlog/slave_binlog_proto/go-binlog:go_default_library",
  70. ],
  71. )