...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "http",
5 srcs = [
6 "liveness.go",
7 "metrics.go",
8 "msg.go",
9 "readiness.go",
10 ],
11 importpath = "edge-infra.dev/pkg/edge/datasync/chirp/server/http",
12 visibility = ["//visibility:public"],
13 deps = [
14 "//pkg/edge/datasync/chirp/model",
15 "//pkg/edge/datasync/chirp/persister",
16 "//pkg/edge/datasync/chirp/persister/files",
17 "//pkg/edge/datasync/http",
18 "//pkg/edge/datasync/internal/config",
19 "//pkg/edge/datasync/internal/protos/upload",
20 "//pkg/edge/datasync/internal/serializer",
21 "//pkg/lib/fog",
22 "@com_github_google_uuid//:uuid",
23 "@com_github_prometheus_client_golang//prometheus",
24 ],
25)
26
27go_test(
28 name = "http_test",
29 srcs = ["http_test.go"],
30 embed = [":http"],
31 deps = [
32 "//pkg/edge/datasync/internal/config/fake",
33 "@com_github_stretchr_testify//assert",
34 ],
35)
View as plain text