idgen

package
v2.0.3-beta.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CDNHostID

func CDNHostID(hostname string, port int32) string

func CDNPeerID

func CDNPeerID(ip string) string

func HostID

func HostID(hostname string, port int32) string

func ParentTaskID

func ParentTaskID(url string, meta *base.UrlMeta) string

ParentTaskID generates a task id like TaskID, but without range. this func is used to check the parent tasks for ranged requests

func PeerID

func PeerID(ip string) string

func SeedPeerID added in v2.0.3

func SeedPeerID(ip string) string

func TaskID

func TaskID(url string, meta *base.UrlMeta) string

TaskID generates a task id. filter is separated by & character.

func UUIDString

func UUIDString() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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