MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / EncodeTaskID

Function EncodeTaskID

pkg/hashid/hash.go:109–112  ·  view source on GitHub ↗

EncodeTaskID encode task id to hash id

(encoder Encoder, uid int)

Source from the content-addressed store, hash-verified

107
108// EncodeTaskID encode task id to hash id
109func EncodeTaskID(encoder Encoder, uid int) string {
110 res, _ := encoder.Encode([]int{uid, TaskID})
111 return res
112}
113
114// EncodeEntityID encode entity id to hash id
115func EncodeEntityID(encoder Encoder, id int) string {

Callers 3

BuildTaskResponseFunction · 0.92
TasksMethod · 0.92
GetMethod · 0.92

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected