Documentation ¶
Index ¶
- Constants
- type IPFS
- func (i *IPFS) Capabilities() *publicstorage.Capabilities
- func (i *IPFS) Init(ctx context.Context, prefix config.Prefix, callbacks publicstorage.Callbacks) error
- func (i *IPFS) InitPrefix(prefix config.Prefix)
- func (i *IPFS) Name() string
- func (i *IPFS) PublishData(ctx context.Context, data io.Reader) (string, error)
- func (i *IPFS) RetrieveData(ctx context.Context, payloadRef string) (data io.ReadCloser, err error)
Constants ¶
View Source
const ( // IPFSConfAPISubconf is the http configuration to connect to the API endpoint of IPFS IPFSConfAPISubconf = "api" // IPFSConfGatewaySubconf is the http configuration to connect to the Gateway endpoint of IPFS IPFSConfGatewaySubconf = "gateway" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFS ¶
type IPFS struct {
// contains filtered or unexported fields
}
func (*IPFS) Capabilities ¶
func (i *IPFS) Capabilities() *publicstorage.Capabilities
func (*IPFS) InitPrefix ¶
func (*IPFS) PublishData ¶
func (*IPFS) RetrieveData ¶
Click to show internal directories.
Click to hide internal directories.