peerservice

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "net.peerservice"

Variables

View Source
var (
	ErrAddrsNotFound = errors.New("addrs for peer not found")
)

Functions

This section is empty.

Types

type PeerService

type PeerService interface {
	Dial(ctx context.Context, peerId string) (pr peer.Peer, err error)
	SetPeerAddrs(peerId string, addrs []string)
	transport.Accepter
	app.Component
}

func New

func New() PeerService

Jump to

Keyboard shortcuts

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