gossipsub

package
v0.0.0-...-106deb1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: BSD-3-Clause-Clear Imports: 18 Imported by: 0

Documentation

Overview

Package gossipsub is a wrapper to connect PnyxDB nodes with libp2p gossip.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a new gossipsub-based network.

Types

type Parameters

type Parameters struct {
	Host           host.Host
	Topic          string
	BootstrapAddrs []string
	ChannelsBuffer uint
	RecoveryQuorum uint

	Ctx context.Context
}

Parameters holds gossipsub instance parameters.

func Defaults

func Defaults(h host.Host) Parameters

Defaults return safe defaults for gossipsub.

Jump to

Keyboard shortcuts

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