Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJsonDomainRules ¶
func LoadJsonDomainRules(reader io.Reader) (map[string]DomainRule, error)
Types ¶
type DomainRule ¶
type DomainRule struct { Type ReferrerType Label string Domain string Parameters []string }
type GoogleSearchType ¶
type GoogleSearchType int
const ( NotGoogleSearch GoogleSearchType = iota OrganicSearch Adwords )
func (GoogleSearchType) String ¶
func (g GoogleSearchType) String() string
type Referrer ¶
type Referrer struct { Type ReferrerType Label string URL string Subdomain string Domain string Tld string Path string Query string GoogleType GoogleSearchType }
func (*Referrer) RegisteredDomain ¶
type ReferrerType ¶
type ReferrerType int
const ( Invalid ReferrerType = iota Indirect Direct Email Search Social )
func (ReferrerType) String ¶
func (r ReferrerType) String() string
type RuleSet ¶
type RuleSet struct { DomainRules map[string]DomainRule UaRules map[string]UaRule }
var DefaultRules RuleSet
func NewRuleSet ¶
func NewRuleSet() RuleSet
Click to show internal directories.
Click to hide internal directories.