Documentation ¶ Index ¶ Variables func Get(r *http.Request, ref, requestHostname string) (string, string, string) func Ignore(r *http.Request) bool Constants ¶ This section is empty. Variables ¶ View Source var ( // QueryParams is a list of query parameters to set the referrer. QueryParams = []struct { param string preferHeader bool }{ {"ref", false}, {"referer", false}, {"referrer", false}, {"source", true}, {"utm_source", true}, } ) Functions ¶ func Get ¶ func Get(r *http.Request, ref, requestHostname string) (string, string, string) Get returns the referrer for given request. func Ignore ¶ func Ignore(r *http.Request) bool Ignore returns whether a referrer should be ignored or not. Types ¶ This section is empty. Source Files ¶ View all Source files android.go groups.go hostname_blacklist.go referrer.go referrer_blacklist.go Click to show internal directories. Click to hide internal directories.