p2p

package
v0.0.0-...-79b3612 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DHTBootstrapID string
View Source
var ServerMap map[string]*wireguard.Client
View Source
var TotalBytes uint64
View Source
var TrafficMap map[string]uint64

Functions

func BootstrapNode

func BootstrapNode(ctx context.Context, listenHost string, port int)

BootstrapNode relay function

func HandleSessionDeletion

func HandleSessionDeletion(sessionID string, userID uint32) (uint64, error)

func HandleSessionEstablish

func HandleSessionEstablish(sessionId string, userId uint32) error

func PeerStats

func PeerStats() (res []*pb.SessionInfo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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