idgen

package
v2.0.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostID

func HostID(hostname string, port int32) string

HostID generates a host id.

func ParentTaskID

func ParentTaskID(url string, meta *commonv1.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

PeerID generates a peer id.

func SeedPeerID added in v2.0.3

func SeedPeerID(ip string) string

SeedPeerID generates a seed peer id.

func TaskID

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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