BUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. "audit.go",
  11. "dao.go",
  12. "transcode.go",
  13. ],
  14. importpath = "go-common/app/interface/main/tv/dao/audit",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/interface/main/tv/conf:go_default_library",
  19. "//app/interface/main/tv/model:go_default_library",
  20. "//library/cache/memcache:go_default_library",
  21. "//library/database/sql:go_default_library",
  22. "//library/ecode:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/time:go_default_library",
  25. "//library/xstr:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = [
  43. "audit_test.go",
  44. "dao_test.go",
  45. "transcode_test.go",
  46. ],
  47. embed = [":go_default_library"],
  48. rundir = ".",
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/interface/main/tv/conf:go_default_library",
  52. "//app/interface/main/tv/model:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. ],
  56. )