Documentation
¶
Index ¶
Constants ¶
View Source
const ( GetLastBlock method = iota GetMempoolTxs GetMempoolTxsBySize SendMempoolTx VerifyCandidateBlock CreateWallet CreateFromSeed LoadWallet SendBidTx SendStakeTx SendStandardTx GetBalance GetUnconfirmedBalance GetAddress GetTxHistory GetLastCertificate GetCandidate GetRoundResults AutomateConsensusTxs GetSyncProgress IsWalletLoaded )
Variables ¶
View Source
var ( // ErrRequestTimeout is returned when request timeout-ed ErrRequestTimeout = errors.New("timeout-ed request") // ErrMethodExists is returned when method is already registered ErrMethodExists = errors.New("method exists already") // ErrMethodNotExists is returned when calling an unregistered method ErrMethodNotExists = errors.New("method not registered") // ErrInvalidRequestChan is returned method is bound to nil chan ErrInvalidRequestChan = errors.New("invalid request channel") )
Functions ¶
Types ¶
type RPCBus ¶
type RPCBus struct {
// contains filtered or unexported fields
}
RPCBus is a request–response mechanism for internal communication between node components/subsystems. Under the hood this is long-polling method based on "chan chan" technique.
type Request ¶
func NewRequest ¶
NewRequest builds a new request with params
Click to show internal directories.
Click to hide internal directories.