Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnnounceRequest ¶
type HTTPClient ¶
func NewHTTPClient ¶
func NewHTTPClient(timeout time.Duration) *HTTPClient
func NewHTTPClientWithBind ¶
func NewHTTPClientWithBind(timeout time.Duration, bindIfIndex int) *HTTPClient
func (*HTTPClient) Announce ¶
func (c *HTTPClient) Announce(ctx context.Context, trackerURL string, req AnnounceRequest) ([]string, error)
type Manager ¶
type Manager struct {
HTTP trackerAnnouncer
UDP trackerAnnouncer
// contains filtered or unexported fields
}
func NewManager ¶
func NewManagerWithBind ¶
NewManagerWithBind constructs a Manager whose UDP tracker client forces outbound packets through the given network interface index (0 disables the override and lets the OS routing table decide).
func (*Manager) AnnounceAll ¶
Click to show internal directories.
Click to hide internal directories.