opfie

package
v0.0.0-...-1253343 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 0

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
}

IPFSClient ipfs客户端

func NewIPFSClient

func NewIPFSClient(url string) (*IPFSClient, error)

NewIPFSClient 新建ipfs客户端

func (*IPFSClient) AddFileByCID

func (c *IPFSClient) AddFileByCID(ctx context.Context, cid string) error

AddFileByCID 通过cid上传文件到节点

func (*IPFSClient) GetInfoByCID

func (c *IPFSClient) GetInfoByCID(ctx context.Context, cidStr string) ([]*format.Link, uint64, error)

GetInfoByCID 通过cid获取文件信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL