gossip

package
v0.0.0-...-648c852 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidationTimeout = time.Second * 30

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster struct {
	// contains filtered or unexported fields
}

func NewBroadcaster

func NewBroadcaster(
	networkID rebro.NetworkID,
	singer crypto.Signer,
	certifier rebro.Certifier,
	hasher rebro.Hasher,
	decoder rebro.MessageIDDecoder,
	ps *pubsub.PubSub,
) *Broadcaster

NewBroadcaster instantiates a new gossiping Broadcaster.

func (*Broadcaster) Broadcast

func (bro *Broadcaster) Broadcast(ctx context.Context, msg rebro.Message, qcomm rebro.QuorumCertificate) error

func (*Broadcaster) Start

func (bro *Broadcaster) Start() (err error)

func (*Broadcaster) Stop

func (bro *Broadcaster) Stop(ctx context.Context) (err error)

type Orchestrator

type Orchestrator struct {
	// contains filtered or unexported fields
}

func NewOrchestrator

func NewOrchestrator(ps *pubsub.PubSub) *Orchestrator

func (*Orchestrator) NewBroadcaster

func (o *Orchestrator) NewBroadcaster(
	nid rebro.NetworkID,
	signer crypto.Signer,
	certifier rebro.Certifier,
	hasher rebro.Hasher,
	decoder rebro.MessageIDDecoder,
) (rebro.Broadcaster, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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