예제 #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())
}