BUILD 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "dao.go",
  11. "hbase.go",
  12. "httpclient.go",
  13. "infoc.go",
  14. "monkey.go",
  15. "mysql.go",
  16. "rpc.go",
  17. ],
  18. importpath = "go-common/app/job/main/creative/dao/weeklyhonor",
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. deps = [
  22. "//app/admin/main/up/util/hbaseutil:go_default_library",
  23. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  24. "//app/job/main/creative/conf:go_default_library",
  25. "//app/service/main/archive/api/gorpc:go_default_library",
  26. "//app/service/main/archive/model/archive:go_default_library",
  27. "//app/service/main/up/api/v1:go_default_library",
  28. "//library/database/hbase.v2:go_default_library",
  29. "//library/database/sql:go_default_library",
  30. "//library/ecode:go_default_library",
  31. "//library/log:go_default_library",
  32. "//library/log/infoc:go_default_library",
  33. "//library/net/http/blademaster:go_default_library",
  34. "//library/xstr:go_default_library",
  35. "//vendor/github.com/bouk/monkey:go_default_library",
  36. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  37. ],
  38. )
  39. filegroup(
  40. name = "package-srcs",
  41. srcs = glob(["**"]),
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:private"],
  44. )
  45. filegroup(
  46. name = "all-srcs",
  47. srcs = [":package-srcs"],
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:public"],
  50. )
  51. go_test(
  52. name = "go_default_test",
  53. srcs = [
  54. "dao_test.go",
  55. "hbase_test.go",
  56. "httpclient_test.go",
  57. "infoc_test.go",
  58. "mysql_test.go",
  59. "rpc_test.go",
  60. ],
  61. embed = [":go_default_library"],
  62. tags = ["automanaged"],
  63. deps = [
  64. "//app/interface/main/creative/model/weeklyhonor:go_default_library",
  65. "//app/job/main/creative/conf:go_default_library",
  66. "//app/service/main/up/api/v1:go_default_library",
  67. "//library/database/hbase.v2:go_default_library",
  68. "//vendor/github.com/bouk/monkey:go_default_library",
  69. "//vendor/github.com/golang/mock/gomock:go_default_library",
  70. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  71. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  72. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  73. ],
  74. )