blob: e4d4aa4a2352d3e9f2eb7c5cd966a9e27bf694af [file]
load("@rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "events",
srcs = [
"bigtable.go",
"db.go",
"events.go",
"stream.go",
],
importpath = "go.skia.org/infra/go/metrics2/events",
visibility = ["//visibility:public"],
deps = [
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//go/util",
"@com_google_cloud_go_bigtable//:bigtable",
"@org_golang_google_api//option",
"@org_golang_x_oauth2//:oauth2",
],
)
go_test(
name = "events_test",
srcs = [
"bigtable_test.go",
"db_test.go",
"events_test.go",
],
embed = [":events"],
deps = [
"//go/bt/testutil",
"//go/testutils",
"@com_github_stretchr_testify//require",
],
)