blob: 5c4ef2985e29f122ba182afb8077d712c274e70f [file] [log] [blame]
package notify
import (
"context"
"go.skia.org/infra/perf/go/alerts"
)
// NoopTransport implements Transport by doing nothing.
type NoopTransport struct {
}
// NewNoopTransport returns a new EmailService instance.
func NewNoopTransport() NoopTransport {
return NoopTransport{}
}
// SendNewRegression implements Transport.
func (e NoopTransport) SendNewRegression(ctx context.Context, alert *alerts.Alert, body, subject string) (string, error) {
return "", nil
}
// SendRegressionMissing implements Transport.
func (e NoopTransport) SendRegressionMissing(ctx context.Context, threadingReference string, alert *alerts.Alert, body, subject string) error {
return nil
}