idgen

package
v2.1.34 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// GNNModelNameSuffix is suffix of GNN model id.
	GNNModelNameSuffix = "gnn"

	// MLPModelNameSuffix is suffix of MLP model id.
	MLPModelNameSuffix = "mlp"
)
View Source
const (
	// FilteredQueryParamsSeparator is the separator of filtered query params.
	FilteredQueryParamsSeparator = "&"
)

Variables

This section is empty.

Functions

func GNNModelIDV1 added in v2.0.30

func GNNModelIDV1(ip, hostname string) string

GNNModelIDV1 generates v1 version of gnn model id.

func HostIDV1 added in v2.0.9

func HostIDV1(hostname string, port int32) string

HostIDV1 generates v1 version of host id.

func HostIDV2 added in v2.0.9

func HostIDV2(ip, hostname string) string

HostIDV2 generates v2 version of host id.

func MLPModelIDV1 added in v2.0.30

func MLPModelIDV1(ip, hostname string) string

MLPModelIDV1 generates v1 version of mlp model id.

func ParentTaskIDV1 added in v2.0.9

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

ParentTaskIDV1 generates v1 version of parent task id, but without range. this func is used to check the parent tasks for ranged requests

func PeerIDV1 added in v2.0.9

func PeerIDV1(ip string) string

PeerIDV1 generates v1 version of peer id.

func PeerIDV2 added in v2.0.9

func PeerIDV2() string

PeerIDV2 generates v2 version of peer id.

func SeedPeerIDV1 added in v2.0.9

func SeedPeerIDV1(ip string) string

SeedPeerIDV1 generates v1 version of seed peer id.

func TaskIDV1 added in v2.0.9

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

TaskIDV1 generates v1 version of task id. filter is separated by & character.

func TaskIDV2 added in v2.0.9

func TaskIDV2(url, digest, tag, application string, pieceLength int32, filteredQueryParams []string) string

TaskIDV2 generates v2 version of task id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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