Documentation ¶
Index ¶
Constants ¶
View Source
const MaxDurationCallMailSherpa = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressValidationService ¶
type AddressValidationService interface { ValidateUsAddress(address string) (*extract.Lookup, error) ValidateInternationalAddress(address, country string) (*international_street.Lookup, error) }
func NewAddressValidationService ¶
func NewAddressValidationService(config *config.Config, services *Services) AddressValidationService
type EmailValidationService ¶
type EmailValidationService interface { ValidateEmailWithMailSherpa(ctx context.Context, email string) (*model.ValidateEmailMailSherpaData, error) ValidateEmailScrubby(ctx context.Context, email string) (string, error) ValidateEmailWithTrueinbox(ctx context.Context, email string) (*postgresentity.TrueInboxResponseBody, error) ValidateEmailWithEnrow(ctx context.Context, email string, extendedWaitingTimeForResponse bool) (string, error) }
type EnrowRequest ¶
type EnrowResponse ¶
type IpIntelligenceService ¶
type IpIntelligenceService interface {
LookupIp(ctx context.Context, ip string) (*postgresentity.IPDataResponseBody, error)
}
type PhoneNumberValidationService ¶
type PhoneNumberValidationService interface {
ValidatePhoneNumber(ctx context.Context, countryCodeA2 string, phoneNumber string) (*string, *string, error)
}
func NewPhoneNumberValidationService ¶
func NewPhoneNumberValidationService(services *Services) PhoneNumberValidationService
type ScrubbyIoRequest ¶
type ScrubbyIoResponse ¶
type Services ¶
type Services struct { CommonServices *commonService.Services AddressValidationService AddressValidationService PhoneNumberValidationService PhoneNumberValidationService EmailValidationService EmailValidationService IpIntelligenceService IpIntelligenceService }
Click to show internal directories.
Click to hide internal directories.