ipfs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) *Client

func (*Client) GetDag

func (c *Client) GetDag(ref string) (dag *DagData, err error)

func (*Client) GetPeer

func (c *Client) GetPeer(p string) (*api.PeerInfo, error)

func (*Client) GetPeers

func (c *Client) GetPeers() (*api.SwarmConnInfos, error)

func (*Client) ListFiles

func (c *Client) ListFiles(path string) (entries []*api.MfsLsEntry, err error)

func (*Client) ReadFile

func (c *Client) ReadFile(path string, entry *api.MfsLsEntry) ([]byte, error)

func (*Client) StatFile

func (c *Client) StatFile(path string, entry *api.MfsLsEntry) (string, error)

type DagData

type DagData struct {
	Data  string
	Links []ipld.Link
}

Jump to

Keyboard shortcuts

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