Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPC ¶
type RPCs ¶
type RPCs []*RPC
func (RPCs) GetRandomRPC ¶
GetRandomRPC returns a random RPC from the list of RPCs, which the status is OK and the height is the highest as possible
func (RPCs) RefreshRpcStatus ¶
func (rpcs RPCs) RefreshRpcStatus()
func (RPCs) SendRequest ¶
func (rpcs RPCs) SendRequest(body []byte, numberOfRPCs int, exclude RPCs, httpProxy ...string) (response []byte, origins RPCs, err error)
SendRequest sends JSON RPC request by selecting a random RPC from the list of good status RPCs
func (RPCs) StopRefreshRpcStatus ¶
func (rpcs RPCs) StopRefreshRpcStatus()
Click to show internal directories.
Click to hide internal directories.