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. "account.go",
  10. "bin_log.go",
  11. "encrypt_trans.go",
  12. "passport.go",
  13. "prom.go",
  14. "service.go",
  15. ],
  16. importpath = "go-common/app/job/main/passport-game-cloud/service",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/job/main/passport-game-cloud/conf:go_default_library",
  21. "//app/job/main/passport-game-cloud/dao:go_default_library",
  22. "//app/job/main/passport-game-cloud/model:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. "//library/stat/prom:go_default_library",
  26. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  27. "//vendor/github.com/pkg/errors:go_default_library",
  28. ],
  29. )
  30. go_test(
  31. name = "go_default_test",
  32. srcs = [
  33. "prom_test.go",
  34. "service_test.go",
  35. ],
  36. embed = [":go_default_library"],
  37. rundir = ".",
  38. tags = ["automanaged"],
  39. deps = [
  40. "//app/job/main/passport-game-cloud/conf: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. )