peer

package
v0.0.0-...-5ff8162 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 3 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 {
	Session quic.Session
}

func Connect

func Connect(ip net.IP, port uint) (*Peer, error)

func (*Peer) Disconnect

func (p *Peer) Disconnect() error

type PeerConnectionInfo

type PeerConnectionInfo struct {
	Address net.IP
	Port    uint
}

type PeerDiscoverer

type PeerDiscoverer interface {
	GetPeers() ([]PeerConnectionInfo, error)
}

Jump to

Keyboard shortcuts

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