Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2022 Changes in this version + const APIURL + type API struct + func NewAPI(apiKey string) *API + func (a *API) GetAPIKey() string + func (a *API) GetAPIURL() string + func (a *API) GetCredits() (*ResponseType[CreditsResponseSuccess], error) + func (a *API) SetAPIKey(key string) *API + func (a *API) SetAPIURL(url string) *API + func (a *API) Validate(email string, ipAddress *netip.Addr) (*ResponseType[ValidateResponseSuccess], error) + type CreditsResponseSuccess struct + Credits string + func (c *CreditsResponseSuccess) AsInt() int + type ResponseError struct + Error string + type ResponseType struct + Error *ResponseError + Success *T + func (r *ResponseType[T]) IsError() bool + func (r *ResponseType[T]) IsSuccess() bool + type ValidateResponseSuccess struct + Account *string + Address string + City *string + Country *string + DidYouMean *string + Domain *string + DomainAgeDays *string + Firstname *string + FreeEmail bool + Gender *string + Lastname *string + MxFound *string + MxRecord *string + ProcessedAt string + Region *string + SMTPProvider *string + Status string + SubStatus string + Zipcode *string + func (r *ValidateResponseSuccess) IsAbuse() bool + func (r *ValidateResponseSuccess) IsCatchAll() bool + func (r *ValidateResponseSuccess) IsDoNotMail() bool + func (r *ValidateResponseSuccess) IsInvalid() bool + func (r *ValidateResponseSuccess) IsSpamtrap() bool + func (r *ValidateResponseSuccess) IsUnknown() bool + func (r *ValidateResponseSuccess) IsValid() bool