hoarder

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, node peer.Node) (hoarder.Client, error)

Types

type Client

type Client struct {
	*client.Client
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close()

func (*Client) List

func (c *Client) List() ([]string, error)

func (*Client) Peers added in v1.1.5

func (c *Client) Peers(pids ...peerCore.ID) hoarder.Client

func (*Client) Rare

func (c *Client) Rare() ([]string, error)

TODO: Add cids to dht

func (*Client) Stash

func (c *Client) Stash(cid string, peers ...string) (response.Response, error)

type Peer

type Peer struct {
	Client
	Id string
}

Jump to

Keyboard shortcuts

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