Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFSClient ¶
type IPFSClient struct {
// contains filtered or unexported fields
}
func NewIPFSClient ¶
func NewIPFSClient(apiAddress, projectId, projectSecret string) *IPFSClient
func (*IPFSClient) DeleteFile ¶
func (c *IPFSClient) DeleteFile(cid string) error
func (*IPFSClient) DownloadFile ¶
func (c *IPFSClient) DownloadFile(cid string) ([]byte, error)
func (*IPFSClient) UploadFile ¶
func (c *IPFSClient) UploadFile(data []byte) (string, error)
Click to show internal directories.
Click to hide internal directories.