BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "dao.go",
  10. "util.go",
  11. ],
  12. importpath = "go-common/app/service/main/dapper-query/dao",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/service/main/dapper-query/conf:go_default_library",
  17. "//app/service/main/dapper-query/model:go_default_library",
  18. "//library/log:go_default_library",
  19. "//vendor/github.com/dgryski/go-farm:go_default_library",
  20. "//vendor/github.com/influxdata/influxdb/client/v2:go_default_library",
  21. "//vendor/github.com/tsuna/gohbase:go_default_library",
  22. "//vendor/github.com/tsuna/gohbase/filter:go_default_library",
  23. "//vendor/github.com/tsuna/gohbase/hrpc: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 = [":package-srcs"],
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:public"],
  37. )
  38. go_test(
  39. name = "go_default_test",
  40. srcs = ["dao_test.go"],
  41. embed = [":go_default_library"],
  42. rundir = ".",
  43. tags = ["automanaged"],
  44. deps = [
  45. "//app/service/main/dapper-query/conf:go_default_library",
  46. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  47. "//vendor/golang.org/x/sys/unix:go_default_library",
  48. ],
  49. )