trackermanager

package
v1.12.18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrackerManager

type TrackerManager struct {
	// contains filtered or unexported fields
}

TrackerManager is a manager for using the same transport for same domains/IPs. Manages both HTTP and UDP trackers.

func New

func New(bl *blocklist.Blocklist, dnsTimeout time.Duration, tlsSkipVerify bool) *TrackerManager

New returns a new TrackerManager.

func (*TrackerManager) Close added in v1.11.1

func (m *TrackerManager) Close()

func (*TrackerManager) Get

func (m *TrackerManager) Get(s string, httpTimeout time.Duration, httpUserAgent string, httpMaxResponseLength int64) (tracker.Tracker, error)

Get a new Tracker implementation from the manager.

Jump to

Keyboard shortcuts

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