Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PoolRpc []*BackendState PoolApi []*BackendState PoolGrpc []*BackendState PoolEth []*BackendState PoolEthWs []*BackendState ProxyMapRpc = make(map[string]*httputil.ReverseProxy) ProxyMapApi = make(map[string]*httputil.ReverseProxy) ProxyMapEth = make(map[string]*httputil.ReverseProxy) )
Functions ¶
func FetchHeightFromStatus ¶
func IsNeededToFetchLastBlock ¶
func IsNeededToFetchLastBlock(s *BackendState) bool
func TaskUpdateState ¶
func TaskUpdateState()
Types ¶
type BackendState ¶
type BackendState struct { Name string NodeType config.BackendNodeType LastBlock int64 Backend *config.Backend }
func GetPool ¶
func GetPool(t config.ProtocolType) []*BackendState
func SelectMatchedBackend ¶
func SelectMatchedBackend(height int64, t config.ProtocolType) (*BackendState, error)
func SelectPrunedNode ¶
func SelectPrunedNode(t config.ProtocolType) *BackendState
Click to show internal directories.
Click to hide internal directories.