BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "api.go",
  11. "dao.go",
  12. "db.go",
  13. "redis.go",
  14. ],
  15. importpath = "go-common/app/job/main/aegis/dao/monitor",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/job/main/aegis/conf:go_default_library",
  20. "//app/job/main/aegis/model/monitor:go_default_library",
  21. "//library/cache/redis:go_default_library",
  22. "//library/database/sql:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/net/http/blademaster:go_default_library",
  26. "//vendor/github.com/pkg/errors:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )
  41. go_test(
  42. name = "go_default_test",
  43. srcs = [
  44. "api_test.go",
  45. "dao_test.go",
  46. "db_test.go",
  47. "redis_test.go",
  48. ],
  49. embed = [":go_default_library"],
  50. tags = ["automanaged"],
  51. deps = [
  52. "//app/job/main/aegis/conf:go_default_library",
  53. "//app/job/main/aegis/model/monitor:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  56. ],
  57. )