示例#1
0
文件: server.go 项目: rht/ipget
func providerKey(k key.Key) datastore.Key {
	return datastore.KeyWithNamespaces([]string{"routing", "providers", k.String()})
}
示例#2
0
文件: path.go 项目: rht/ipget
// FromKey safely converts a Key type to a Path type
func FromKey(k key.Key) Path {
	return Path("/ipfs/" + k.String())
}