Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleRule ¶ added in v1.1.0
type AppleRule struct { }
AppleRule : email normalization rule for Apple
func (*AppleRule) ProcessDomain ¶ added in v1.1.5
func (*AppleRule) ProcessUsername ¶ added in v1.1.5
type FastmailRule ¶
type FastmailRule struct { }
FastmailRule : email normalization rule for Fastmail
func (*FastmailRule) ProcessDomain ¶ added in v1.1.5
func (rule *FastmailRule) ProcessDomain(domain string) string
func (*FastmailRule) ProcessUsername ¶ added in v1.1.5
func (rule *FastmailRule) ProcessUsername(username string) string
type GoogleRule ¶
type GoogleRule struct { }
GoogleRule : email normalization rule for Google
func (*GoogleRule) ProcessDomain ¶ added in v1.1.5
func (rule *GoogleRule) ProcessDomain(domain string) string
func (*GoogleRule) ProcessUsername ¶ added in v1.1.5
func (rule *GoogleRule) ProcessUsername(username string) string
type MicrosoftRule ¶
type MicrosoftRule struct { }
MicrosoftRule : email normalization rule for Microsoft
func (*MicrosoftRule) ProcessDomain ¶ added in v1.1.5
func (rule *MicrosoftRule) ProcessDomain(domain string) string
func (*MicrosoftRule) ProcessUsername ¶ added in v1.1.5
func (rule *MicrosoftRule) ProcessUsername(username string) string
type Normalizer ¶
type Normalizer struct {
// contains filtered or unexported fields
}
Normalizer : main library object for normalization emails
func (*Normalizer) AddRule ¶
func (n *Normalizer) AddRule(domain string, strategy NormalizingRule)
AddRule : appends custom normalization rule
func (*Normalizer) Normalize ¶
func (n *Normalizer) Normalize(email string) string
Normalize : converts email to canonical form
type NormalizingRule ¶
NormalizingRule : interface for all email normalization rules
type ProtonmailRule ¶ added in v1.1.0
type ProtonmailRule struct { }
ProtonmailRule : email normalization rule for Protonmail
func (*ProtonmailRule) ProcessDomain ¶ added in v1.1.5
func (rule *ProtonmailRule) ProcessDomain(domain string) string
func (*ProtonmailRule) ProcessUsername ¶ added in v1.1.5
func (rule *ProtonmailRule) ProcessUsername(username string) string
type RackspaceRule ¶ added in v1.1.0
type RackspaceRule struct { }
RackspaceRule : email normalization rule for Rackspace
func (*RackspaceRule) ProcessDomain ¶ added in v1.1.5
func (rule *RackspaceRule) ProcessDomain(domain string) string
func (*RackspaceRule) ProcessUsername ¶ added in v1.1.5
func (rule *RackspaceRule) ProcessUsername(username string) string
type RamblerRule ¶
type RamblerRule struct { }
RamblerRule : email normalization rule for Rambler
func (*RamblerRule) ProcessDomain ¶ added in v1.1.5
func (rule *RamblerRule) ProcessDomain(domain string) string
func (*RamblerRule) ProcessUsername ¶ added in v1.1.5
func (rule *RamblerRule) ProcessUsername(username string) string
type YahooRule ¶ added in v1.1.0
type YahooRule struct { }
YahooRule : email normalization rule for Yahoo
func (*YahooRule) ProcessDomain ¶ added in v1.1.5
func (*YahooRule) ProcessUsername ¶ added in v1.1.5
type YandexRule ¶ added in v1.1.0
type YandexRule struct { }
YandexRule : email normalization rule for Yandex
func (*YandexRule) ProcessDomain ¶ added in v1.1.5
func (rule *YandexRule) ProcessDomain(domain string) string
func (*YandexRule) ProcessUsername ¶ added in v1.1.5
func (rule *YandexRule) ProcessUsername(username string) string
type ZohoRule ¶ added in v1.1.0
type ZohoRule struct { }
ZohoRule : email normalization rule for Zoho