Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BHD ¶
type BHD struct {
// contains filtered or unexported fields
}
func (*BHD) IsUnregistered ¶
type BTN ¶
type BTN struct {
// contains filtered or unexported fields
}
func (*BTN) IsUnregistered ¶
type HDB ¶
type HDB struct {
// contains filtered or unexported fields
}
func (*HDB) IsUnregistered ¶
type Interface ¶
type Interface interface {
Name() string
Check(host string) bool
IsUnregistered(ctx context.Context, torrent *Torrent) (error, bool)
IsTrackerDown(torrent *Torrent) (error, bool)
}
func NewUNIT3D ¶
func NewUNIT3D(name string, c UNIT3DConfig) Interface
API docs: https://hdinnovations.github.io/UNIT3D/torrent_api.html
type OPS ¶
type OPS struct {
// contains filtered or unexported fields
}
func (*OPS) IsUnregistered ¶
type PTP ¶
type PTP struct {
// contains filtered or unexported fields
}
func (*PTP) IsUnregistered ¶
type RED ¶
type RED struct {
// contains filtered or unexported fields
}
func (*RED) IsUnregistered ¶
type Torrent ¶
type Torrent struct {
// torrent
Hash string `json:"Hash"`
Name string `json:"Name"`
TotalBytes int64 `json:"TotalBytes"`
DownloadedBytes int64 `json:"DownloadedBytes"`
State string `json:"State"`
Downloaded bool `json:"Downloaded"`
Seeding bool `json:"Seeding"`
// tracker
TrackerName string
TrackerStatus string
Comment string
// internal
APIDividerPrinted bool
}
type UNIT3D ¶
type UNIT3D struct {
// contains filtered or unexported fields
}
func (*UNIT3D) IsUnregistered ¶
type UNIT3DConfig ¶
Click to show internal directories.
Click to hide internal directories.