ipfs-cluster/api
Hector Sanjuan a97ed10d0b Adopt api.Cid type - replaces cid.Cid everwhere.
This commit introduces an api.Cid type and replaces the usage of cid.Cid
everywhere.

The main motivation here is to override MarshalJSON so that Cids are
JSON-ified as '"Qm...."' instead of '{ "/": "Qm....." }', as this "ipld"
representation of IDs is horrible to work with, and our APIs are not issuing
IPLD objects to start with.

Unfortunately, there is no way to do this cleanly, and the best way is to just
switch everything to our own type.
2022-04-07 14:27:39 +02:00
..
common Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
ipfsproxy Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
pb Update protobuf compiler and generated files 2022-01-11 16:47:45 +01:00
pinsvcapi Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
rest Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
add_test.go Fix #1358: Set RawLeaves to true when unset and CidVersion=1 (#1359) 2021-05-19 23:56:30 +02:00
add.go Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
types_test.go Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
types.go Adopt api.Cid type - replaces cid.Cid everwhere. 2022-04-07 14:27:39 +02:00
util.go staticcheck: fix all staticcheck warnings in the project 2020-04-14 20:16:10 +02:00