Documentation ¶
Index ¶
- Constants
- type IPFS
- func (i *IPFS) Capabilities() *sharedstorage.Capabilities
- func (i *IPFS) DownloadData(ctx context.Context, payloadRef string) (data io.ReadCloser, err error)
- func (i *IPFS) Init(ctx context.Context, config config.Section) error
- func (i *IPFS) InitConfig(config config.Section)
- func (i *IPFS) Name() string
- func (i *IPFS) SetHandler(namespace string, handler sharedstorage.Callbacks)
- func (i *IPFS) UploadData(ctx context.Context, data io.Reader) (string, 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() *sharedstorage.Capabilities
func (*IPFS) DownloadData ¶
func (*IPFS) InitConfig ¶ added in v1.1.0
func (*IPFS) SetHandler ¶ added in v1.1.0
func (i *IPFS) SetHandler(namespace string, handler sharedstorage.Callbacks)
Click to show internal directories.
Click to hide internal directories.