EncodeEntityID encode entity id to hash id
(encoder Encoder, id int)
| 113 | |
| 114 | // EncodeEntityID encode entity id to hash id |
| 115 | func 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 |
| 121 | func EncodeNodeID(encoder Encoder, id int) string { |
no test coverage detected