nooschain / consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client / GoHashicorpRaftHttpClient
Class: GoHashicorpRaftHttpClient
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:13
Constructors
Constructor
new GoHashicorpRaftHttpClient(
baseUrl):GoHashicorpRaftHttpClient
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:16
Parameters
baseUrl
string
Returns
GoHashicorpRaftHttpClient
Methods
getCommittedLogEntries()
getCommittedLogEntries(
options?):Promise<GoRaftLogEntriesResponse>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:35
Parameters
options?
from?
number
to?
number
Returns
Promise<GoRaftLogEntriesResponse>
getStatus()
getStatus():
Promise<GoRaftStatusResponse>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:28
Returns
Promise<GoRaftStatusResponse>
proposeBlock()
proposeBlock(
entry):Promise<void>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:17
Parameters
entry
Returns
Promise<void>
shutdown()
shutdown():
Promise<void>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:46
Returns
Promise<void>
waitUntilReady()
waitUntilReady(
timeoutMs?):Promise<void>
Defined in: consensus/adapters/raft/external-go-hashicorp/go-hashicorp-raft-http-client.ts:49
Parameters
timeoutMs?
number = 10_000
Returns
Promise<void>