Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToNumberedEpoch ¶
ConvertToNumberedEpoch converts named epoch to numbered epoch if necessary.
func MustNewCfxClientFromViper ¶
MustNewCfxClientFromViper creates an instance of Conflux client from viper or panic on error.
Types ¶
type CfxClientOptionConfig ¶
type CfxClientOptionConfig struct { // retry counts if request failed Retry int `default:"3"` // retry interval if request failed RetryInterval time.Duration `default:"1s"` // request timeout RequestTimeout time.Duration `default:"3s"` }
CfxClientOptionConfig Conflux SDK client option configurations.
Click to show internal directories.
Click to hide internal directories.