load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "worker", srcs = [ "message-worker.go", "worker.go", ], importpath = "edge-infra.dev/pkg/edge/datasync/chirp/worker", visibility = ["//visibility:public"], deps = [ "//pkg/edge/datasync/chirp/provider", "//pkg/edge/datasync/chirp/sender", "//pkg/edge/datasync/internal/config", "//pkg/lib/fog", "@com_github_go_logr_logr//:logr", ], ) go_test( name = "worker_test", srcs = ["message-worker_test.go"], data = glob(["testdata/**"]), embed = [":worker"], deps = [ "//pkg/edge/datasync/chirp/model", "//pkg/edge/datasync/internal/config", "//pkg/edge/datasync/internal/config/fake", "@com_github_google_uuid//:uuid", "@com_github_stretchr_testify//mock", "@com_github_stretchr_testify//require", ], )