nooschain / consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process / GoHashicorpRaftProcess
Class: GoHashicorpRaftProcess
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:19
Supervises one local HashiCorp Raft sidecar process.
Constructors
Constructor
new GoHashicorpRaftProcess(
config,logger?,onExit?):GoHashicorpRaftProcess
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:25
Parameters
config
logger?
error
info
onExit?
(exit) => void
Returns
GoHashicorpRaftProcess
Accessors
lastExitInfo
Get Signature
get lastExitInfo():
GoRaftProcessExit|null
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:50
Most recent exit code/signal, including whether shutdown was intentional.
Returns
GoRaftProcessExit | null
pid
Get Signature
get pid():
number|null
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:45
Current operating-system process id, if the sidecar is running.
Returns
number | null
running
Get Signature
get running():
boolean
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:35
True while the child process exists and has not exited.
Returns
boolean
uptimeMs
Get Signature
get uptimeMs():
number|null
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:40
Milliseconds since the current child process was started.
Returns
number | null
Methods
start()
start():
Promise<void>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:58
Spawns the sidecar without a shell, preserving Windows/Linux path safety and passing secrets only through environment variables.
Returns
Promise<void>
stop()
stop():
Promise<void>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-process.ts:115
Attempts graceful shutdown, then force-kills after a short timeout.
Returns
Promise<void>