node

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 22 Imported by: 5

Documentation

Overview

This package will expose some internal capability and is subject to change, use at your own risk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeFollowerFromSeed

func InitializeFollowerFromSeed(workDir string, expectedPartitionType protocol.PartitionType, seedNodeUrl string) error

func SubscribeSync

func SubscribeSync[T Event](b *Bus, sub func(T) error)

SubscribeSync will expose the internal subscribe sync

Types

type Bus

type Bus = events.Bus

type Daemon

type Daemon = accumulated.Daemon

func NewNode

func NewNode(workDir string, logWriter logger.LogWriter, nodeIndex int) (*Daemon, error)

CreateNode specify working directory of configuration, a log writer callback, and nodeIndex (usually zero unless running a devnet with more than one node on the same BVN)

type DidCommitBlock

type DidCommitBlock = events.DidCommitBlock

type DidSaveSnapshot

type DidSaveSnapshot = events.DidSaveSnapshot

type Event

type Event = events.Event

type FatalError

type FatalError = events.FatalError

Jump to

Keyboard shortcuts

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