ipfs

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFSNode

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

func New

func New(litepeer *ipfs.Peer) *IPFSNode

func (*IPFSNode) Add

func (I *IPFSNode) Add(ctx context.Context, reader io.Reader, info *store.Info) (string, error)

func (*IPFSNode) AddDir added in v0.0.16

func (I *IPFSNode) AddDir(ctx context.Context, dir string, info *store.Info) (string, error)

func (*IPFSNode) AddrInfo

func (I *IPFSNode) AddrInfo() *peer.AddrInfo

func (*IPFSNode) Bootstrap

func (I *IPFSNode) Bootstrap(peers []peer.AddrInfo)

func (*IPFSNode) Connect

func (I *IPFSNode) Connect(info peer.AddrInfo) error

func (*IPFSNode) Delete

func (I *IPFSNode) Delete(ctx context.Context, tag string) error

func (*IPFSNode) Get

func (I *IPFSNode) Get(ctx context.Context, tag string) (io.ReadSeekCloser, *store.Info, error)

func (*IPFSNode) GetPrivKey added in v0.0.16

func (I *IPFSNode) GetPrivKey() crypto.PrivKey

func (*IPFSNode) GetPubKey added in v0.0.16

func (I *IPFSNode) GetPubKey(id peer.ID) crypto.PubKey

func (*IPFSNode) GroupAdd added in v0.0.16

func (I *IPFSNode) GroupAdd(ctx context.Context, reader io.Reader, info *store.Info, groupIDString string) (string, error)

func (*IPFSNode) GroupAddDir added in v0.0.16

func (I *IPFSNode) GroupAddDir(ctx context.Context, dir string, info *store.Info, groupIDString string) (string, error)

func (*IPFSNode) IsOnline

func (I *IPFSNode) IsOnline() bool

func (*IPFSNode) IsPeerConnected

func (I *IPFSNode) IsPeerConnected(id string) bool

func (*IPFSNode) NetworkNotifiee

func (I *IPFSNode) NetworkNotifiee(n network.Notifiee)

func (*IPFSNode) NewFloodsubWithProtocols

func (I *IPFSNode) NewFloodsubWithProtocols(ps []protocol.ID, opts ...pubsub.Option) (*pubsub.PubSub, error)

func (*IPFSNode) Peers

func (I *IPFSNode) Peers() []string

func (*IPFSNode) ReplManager

func (I *IPFSNode) ReplManager() *replication.Manager

func (*IPFSNode) Stop

func (I *IPFSNode) Stop()

Jump to

Keyboard shortcuts

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