Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleRule ¶
type AppleRule struct { }
AppleRule : email normalization rule for Apple
func (*AppleRule) ProcessDomain ¶
func (*AppleRule) ProcessUsername ¶
type FastmailRule ¶
type FastmailRule struct { }
FastmailRule : email normalization rule for Fastmail
func (*FastmailRule) ProcessDomain ¶
func (rule *FastmailRule) ProcessDomain(domain string) string
func (*FastmailRule) ProcessUsername ¶
func (rule *FastmailRule) ProcessUsername(username string) string
type GoogleRule ¶
type GoogleRule struct { }
GoogleRule : email normalization rule for Google
func (*GoogleRule) ProcessDomain ¶
func (rule *GoogleRule) ProcessDomain(domain string) string
func (*GoogleRule) ProcessUsername ¶
func (rule *GoogleRule) ProcessUsername(username string) string
type MicrosoftRule ¶
type MicrosoftRule struct { }
MicrosoftRule : email normalization rule for Microsoft
func (*MicrosoftRule) ProcessDomain ¶
func (rule *MicrosoftRule) ProcessDomain(domain string) string
func (*MicrosoftRule) ProcessUsername ¶
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 ¶
type ProtonmailRule struct { }
ProtonmailRule : email normalization rule for Protonmail
func (*ProtonmailRule) ProcessDomain ¶
func (rule *ProtonmailRule) ProcessDomain(domain string) string
func (*ProtonmailRule) ProcessUsername ¶
func (rule *ProtonmailRule) ProcessUsername(username string) string
type RackspaceRule ¶
type RackspaceRule struct { }
RackspaceRule : email normalization rule for Rackspace
func (*RackspaceRule) ProcessDomain ¶
func (rule *RackspaceRule) ProcessDomain(domain string) string
func (*RackspaceRule) ProcessUsername ¶
func (rule *RackspaceRule) ProcessUsername(username string) string
type RamblerRule ¶
type RamblerRule struct { }
RamblerRule : email normalization rule for Rambler
func (*RamblerRule) ProcessDomain ¶
func (rule *RamblerRule) ProcessDomain(domain string) string
func (*RamblerRule) ProcessUsername ¶
func (rule *RamblerRule) ProcessUsername(username string) string
type YahooRule ¶
type YahooRule struct { }
YahooRule : email normalization rule for Yahoo
func (*YahooRule) ProcessDomain ¶
func (*YahooRule) ProcessUsername ¶
type YandexRule ¶
type YandexRule struct { }
YandexRule : email normalization rule for Yandex
func (*YandexRule) ProcessDomain ¶
func (rule *YandexRule) ProcessDomain(domain string) string
func (*YandexRule) ProcessUsername ¶
func (rule *YandexRule) ProcessUsername(username string) string