Documentation ¶
Overview ¶
* bittorrent announce via tracker
Index ¶
Constants ¶
View Source
const Completed = Event("completed")
View Source
const Nop = Event("")
View Source
const Started = Event("started")
View Source
const Stopped = Event("stopped")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Announcer ¶
type Announcer interface { // announce and get peers Announce(req *Request) (*Response, error) // name of this tracker Name() string }
bittorrent announcer, gets peers and announces presence in swarm
type HttpTracker ¶
type HttpTracker struct {
// contains filtered or unexported fields
}
http tracker
func (*HttpTracker) Announce ¶
func (t *HttpTracker) Announce(req *Request) (resp *Response, err error)
send announce via http request
func (*HttpTracker) Name ¶
func (t *HttpTracker) Name() string
Click to show internal directories.
Click to hide internal directories.