Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DialTimeoutDefault is a default dial timeout of morph chain client connection. DialTimeoutDefault = 5 * time.Second // NotaryDepositAmountDefault is a default deposit amount to notary contract. NotaryDepositAmountDefault = 5000_0000 // 0.5 Fixed8 // NotaryDepositDurationDefault is a default deposit duration. NotaryDepositDurationDefault uint32 = 1000 // MaxConnPerHostDefault is a default maximum of connections per host of the morph client. MaxConnPerHostDefault = 10 )
Variables ¶
This section is empty.
Functions ¶
func DialTimeout ¶
DialTimeout returns value of "dial_timeout" config parameter from "morph" section.
Returns DialTimeoutDefault if value is not positive duration.
func DisableCache ¶ added in v0.24.0
DisableCache returns value of "disable_cache" config parameter from "morph" section.
func MaxConnPerHost ¶ added in v0.27.1
MaxConnPerHost return value of "max_connections_per_host" config parameter from "morph" section.
func NotificationEndpoint ¶
NotificationEndpoint returns list of values of "notification_endpoint" config parameter from "morph" section.
Throws panic if list is empty.
func RPCEndpoint ¶
RPCEndpoint returns list of values of "rpc_endpoint" config parameter from "morph" section.
Throws panic if list is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.