Skip to content

nooschain v0.1.0


nooschain / consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine / GoRaftProcessEngine

Class: GoRaftProcessEngine

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:23

Implements

Constructors

Constructor

new GoRaftProcessEngine(config, logger?, options?): GoRaftProcessEngine

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:38

Parameters

config

GoHashicorpRaftEngineConfig

logger?
error
info
options?

GoRaftProcessEngineOptions = {}

Returns

GoRaftProcessEngine

Methods

getStatus()

getStatus(): Promise<RaftNodeStatus>

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:77

Returns

Promise<RaftNodeStatus>

Implementation of

RaftEngine.getStatus


onCommittedEntry()

onCommittedEntry(handler): void

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:74

Parameters

handler

CommittedRaftEntryHandler

Returns

void

Implementation of

RaftEngine.onCommittedEntry


replayCommittedEntries()

replayCommittedEntries(): Promise<void>

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:112

Returns

Promise<void>


start()

start(): Promise<void>

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:52

Returns

Promise<void>

Implementation of

RaftEngine.start


stop()

stop(): Promise<void>

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:61

Returns

Promise<void>

Implementation of

RaftEngine.stop


submitBlockProposal()

submitBlockProposal(entry): Promise<void>

Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-engine.ts:71

Parameters

entry

RaftBlockLogEntry

Returns

Promise<void>

Implementation of

RaftEngine.submitBlockProposal

Audience-first NOOSChain documentation.