BUILD 1.5 KB

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