inmemorymesh

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts ...options.Option[Mesh]) module.Provider[*engine.Engine, mesh.Mesh]

func WithBlockDAGProvider

func WithBlockDAGProvider(provider module.Provider[*engine.Engine, blockdag.BlockDAG]) options.Option[Mesh]

WithBlockDAGProvider returns an Option for the Mesh that allows to pass in a provider for the BlockDAG.

func WithBookerProvider

func WithBookerProvider(provider module.Provider[*engine.Engine, booker.Booker]) options.Option[Mesh]

WithBookerProvider returns an Option for the Mesh that allows to pass in a provider for the Booker.

Types

type Mesh

type Mesh struct {
	module.Module
	// contains filtered or unexported fields
}

Mesh is a conflict free replicated data type that allows users to issue their own Blocks with each Block casting virtual votes on existing conflicts.

func (*Mesh) BlockDAG

func (t *Mesh) BlockDAG() blockdag.BlockDAG

func (*Mesh) Booker

func (t *Mesh) Booker() booker.Booker

func (*Mesh) Events

func (t *Mesh) Events() *mesh.Events

Jump to

Keyboard shortcuts

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