Documentation ¶
Index ¶
- Constants
- func HostIDV1(hostname string, port int32) string
- func HostIDV2(ip, hostname string) string
- func ParentTaskIDV1(url string, meta *commonv1.UrlMeta) string
- func PeerIDV1(ip string) string
- func PeerIDV2() string
- func SeedPeerIDV1(ip string) string
- func TaskIDV1(url string, meta *commonv1.UrlMeta) string
- func TaskIDV2(url, digest, tag, application string, pieceLength int32, filters []string) string
Constants ¶
View Source
const (
// URLFilterSeparator is filter separator for url.
URLFilterSeparator = "&"
)
Variables ¶
This section is empty.
Functions ¶
func ParentTaskIDV1 ¶ added in v2.0.9
ParentTaskIDV1 generates v1 version of parent task id, but without range. this func is used to check the parent tasks for ranged requests
func SeedPeerIDV1 ¶ added in v2.0.9
SeedPeerIDV1 generates v1 version of seed peer id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.