peer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Node host.Host
	Name string

	crypto.PubKey
	// contains filtered or unexported fields
}

func Load

func Load(name string) (*Peer, error)

func New

func New(name, rendezvous string) (*Peer, error)

func (*Peer) DiscoverPeers

func (p *Peer) DiscoverPeers(ctx context.Context) (<-chan peer.AddrInfo, error)

func (*Peer) GetPeerDir

func (p *Peer) GetPeerDir() string

func (*Peer) GetRendezvous

func (p *Peer) GetRendezvous() string

func (*Peer) Save

func (p *Peer) Save() (err error)

Jump to

Keyboard shortcuts

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