load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "http", srcs = [ "liveness.go", "metrics.go", "msg.go", "readiness.go", ], importpath = "edge-infra.dev/pkg/edge/datasync/chirp/server/http", visibility = ["//visibility:public"], deps = [ "//pkg/edge/datasync/chirp/model", "//pkg/edge/datasync/chirp/persister", "//pkg/edge/datasync/chirp/persister/files", "//pkg/edge/datasync/http", "//pkg/edge/datasync/internal/config", "//pkg/edge/datasync/internal/protos/upload", "//pkg/edge/datasync/internal/serializer", "//pkg/lib/fog", "@com_github_google_uuid//:uuid", "@com_github_prometheus_client_golang//prometheus", ], ) go_test( name = "http_test", srcs = ["http_test.go"], embed = [":http"], deps = [ "//pkg/edge/datasync/internal/config/fake", "@com_github_stretchr_testify//assert", ], )