driver

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver[V types.Hashable[H], H types.Hash, A types.Addr] struct {
	// contains filtered or unexported fields
}

func New

func New[V types.Hashable[H], H types.Hash, A types.Addr](
	db db.KeyValueStore,
	stateMachine tendermint.StateMachine[V, H, A],
	listeners p2p.Listeners[V, H, A],
	broadcasters p2p.Broadcasters[V, H, A],
	getTimeout timeoutFn,
) *Driver[V, H, A]

func (*Driver[V, H, A]) Start

func (d *Driver[V, H, A]) Start()

The Driver is responsible for listening to messages from the network and passing them into the stateMachine. The stateMachine processes these messages and returns a set of actions to be executed by the Driver. The Driver executes these actions (namely broadcasting messages and triggering scheduled timeouts).

func (*Driver[V, H, A]) Stop

func (d *Driver[V, H, A]) Stop()

Jump to

Keyboard shortcuts

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