Skip to content

Commit

Permalink
Merge pull request #209 from guillaumerose/interface
Browse files Browse the repository at this point in the history
Add missing context in EmailValidator interface
  • Loading branch information
thrawn01 authored Jan 5, 2020
2 parents 8b1009b + 464dc3b commit 02c5416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions email_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ type addressParseResult struct {
}

type EmailValidator interface {
ValidateEmail(email string, mailBoxVerify bool) (EmailVerification, error)
ParseAddresses(addresses ...string) ([]string, []string, error)
ValidateEmail(ctx context.Context, email string, mailBoxVerify bool) (EmailVerification, error)
ParseAddresses(ctx context.Context, addresses ...string) ([]string, []string, error)
}

type EmailValidatorImpl struct {
Expand Down

0 comments on commit 02c5416

Please sign in to comment.