MCPcopy Create free account
hub / github.com/CPChain/chain / Cat

Method Cat

database/ipfs.go:26–26  ·  view source on GitHub ↗

Cat reads data from IPFS.

(path string)

Source from the content-addressed store, hash-verified

24type IpfsAdapter interface {
25 // Cat reads data from IPFS.
26 Cat(path string) (io.ReadCloser, error)
27 // Add adds and pin data to IPFS.
28 Add(r io.Reader) (string, error)
29 // Unpin unpins the data from IPFS, unpinned data may be removed by GC in future.

Callers 1

GetMethod · 0.65

Implementers 2

FakeIpfsAdapterdatabase/ipfs.go
FaultIpfsAdapterprivate/private_tx_helper_test.go

Calls

no outgoing calls

Tested by

no test coverage detected