Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWithBackoff ¶
Types ¶
type ETHChecker ¶
type ETHChecker struct {
// contains filtered or unexported fields
}
func (*ETHChecker) Check ¶
func (e *ETHChecker) Check() bool
type ETHClient ¶
type ETHClient struct {
// contains filtered or unexported fields
}
func NewETHClient ¶
func (*ETHClient) BlockNumber ¶
func (*ETHClient) GetBlockByNumber ¶
func (*ETHClient) GetTransactionReceipt ¶
func (c *ETHClient) GetTransactionReceipt(hash string) (json.RawMessage, error)
type Switcher ¶
type Switcher interface { pkg.Service BackendFor(t pkg.BackendType) (*config.Backend, error) ETHClient() (*ETHClient, error) }
func NewSwitcher ¶
type SwitcherImpl ¶
type SwitcherImpl struct {
// contains filtered or unexported fields
}
func (*SwitcherImpl) BackendFor ¶
func (h *SwitcherImpl) BackendFor(t pkg.BackendType) (*config.Backend, error)
func (*SwitcherImpl) ETHClient ¶
func (h *SwitcherImpl) ETHClient() (*ETHClient, error)
func (*SwitcherImpl) Start ¶
func (h *SwitcherImpl) Start() error
func (*SwitcherImpl) Stop ¶
func (h *SwitcherImpl) Stop() error
Click to show internal directories.
Click to hide internal directories.