p2p

package
v0.0.0-...-83016a8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOPICNAME_NODE   = "b2bda31ed1603dc57ef0fea802c117fa8f23db2c5664dd9557b95860d86dc6db"
	TOPICNAME_CLIENT = "cf7a3efe5479ce71fc7a9faee3ae9549e666f4c7613322fd996c051748e16a69"
)

Variables

This section is empty.

Functions

func NewKademliaDHT

func NewKademliaDHT(ctx context.Context, h host.Host) (*dht.IpfsDHT, error)

Types

type PeerService

type PeerService struct {
	Recv chan *carthage.PeerMessage
	Send chan *carthage.PeerMessage
	// contains filtered or unexported fields
}

func NewPeerService

func NewPeerService(ctx context.Context, config carthage.Config) (*PeerService, error)

func (*PeerService) Close

func (ps *PeerService) Close()

func (*PeerService) Start

func (ps *PeerService) Start(ctx context.Context, sendTopicName string, receiveTopicName string)

Jump to

Keyboard shortcuts

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