Documentation ¶
Index ¶
- Constants
- func GNNModelIDV1(ip, hostname string) string
- func HostIDV1(hostname string, port int32) string
- func HostIDV2(ip, hostname string) string
- func MLPModelIDV1(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 ( // GNNModelNameSuffix is suffix of GNN model id. GNNModelNameSuffix = "gnn" // MLPModelNameSuffix is suffix of MLP model id. MLPModelNameSuffix = "mlp" )
View Source
const (
// URLFilterSeparator is filter separator for url.
URLFilterSeparator = "&"
)
Variables ¶
This section is empty.
Functions ¶
func GNNModelIDV1 ¶
GNNModelIDV1 generates v1 version of gnn model id.
func MLPModelIDV1 ¶
MLPModelIDV1 generates v1 version of mlp model id.
func ParentTaskIDV1 ¶
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 ¶
SeedPeerIDV1 generates v1 version of seed peer id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.