Skip to content

Commit

Permalink
Add missing context in EmailValidator interface
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
  • Loading branch information
guillaumerose committed Dec 31, 2019
1 parent 8b1009b commit 464dc3b
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 464dc3b

Please sign in to comment.