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

Function EncodeEntityID

pkg/hashid/hash.go:115–118  ·  view source on GitHub ↗

EncodeEntityID encode entity id to hash id

(encoder Encoder, id int)

Source from the content-addressed store, hash-verified

113
114// EncodeEntityID encode entity id to hash id
115func EncodeEntityID(encoder Encoder, id int) string {
116 res, _ := encoder.Encode([]int{id, EntityID})
117 return res
118}
119
120// EncodeNodeID encode node id to hash id
121func EncodeNodeID(encoder Encoder, id int) string {

Callers 9

FileInfoMethod · 0.92
BuildFileResponseFunction · 0.92
BuildEntityFunction · 0.92
findETagFunction · 0.92
indexSingleFileMethod · 0.92
DoMethod · 0.92
performIndexingFunction · 0.92
ServeMethod · 0.92
UrlMethod · 0.92

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected