p2p

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinPeers                 = 0
	MaxPeers                 = 2
	DefaultGeoBeaconInterval = 5 * time.Minute
	ErrorGeoBeaconStopped    = errors.New("geoBeacon Stopped")
)

Functions

This section is empty.

Types

type Client

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

func New

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

func (*Client) Close

func (c *Client) Close()

func (*Client) List

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

func (*Client) Rare

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

func (*Client) Stash

func (c *Client) Stash(cid 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