blob: 3a736c7b93ccf185a54f76693af173cacc9f7007 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "emailservice",
srcs = ["emailservice.go"],
importpath = "go.skia.org/infra/email/go/emailservice",
visibility = ["//visibility:public"],
deps = [
"//go/common",
"//go/email",
"//go/httputils",
"//go/metrics2",
"//go/secret",
"//go/skerr",
"//go/sklog",
"@com_github_go_chi_chi_v5//:chi",
"@com_github_sendgrid_sendgrid_go//:sendgrid-go",
"@com_github_sendgrid_sendgrid_go//helpers/mail",
"@org_golang_x_oauth2//google",
],
)
go_test(
name = "emailservice_test",
srcs = ["emailservice_test.go"],
embed = [":emailservice"],
deps = [
"//go/metrics2",
"@com_github_sendgrid_sendgrid_go//:sendgrid-go",
"@com_github_sendgrid_sendgrid_go//helpers/mail",
"@com_github_stretchr_testify//require",
],
)