tracker

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var ErrMaxRedirect = fmt.Errorf("tracker: max redirects (%d) followed", maxRedirects)
View Source
var ErrNoRedirectTracker = errors.New("tracker: no redirect")

Functions

func KnownTrackers

func KnownTrackers() []string

KnownTrackers ...

func Untrack

func Untrack(rawurl string) (string, error)

Types

type CleanUpRule

type CleanUpRule struct {
	Params       []string
	InvertParams bool
	EmptyParams  bool
	EmptyPath    bool
}

type ExtractTarget

type ExtractTarget func(tracker *url.URL) (*url.URL, error)

func RegisterTracker

func RegisterTracker(host string, fn ExtractTarget) ExtractTarget

RegisterTracker ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL