package
0.0.0-20250117074236-2ff0d9ba57f2
Repository: https://github.com/latticebclab/go-lattice.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DefaultBackOffRetryStrategy 创建默认的BackOff等待策略 Returns: - RetryStrategy.
DefaultFixedRetryStrategy 创建默认的固定等待策略 Returns: - RetryStrategy.
DefaultRandomRetryStrategy 创建默认的随机等待策略 Parameters: Returns: - RetryStrategy.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewLattice 初始化LatticeApi Parameters: - chainConfig *ChainConfig: 链配置信息 - connectingNodeConfig *ConnectingNodeConfig: 节点的连接信息 - blockCache BlockCache: 区块缓存接口,通过缓存支持账户高并发发交易,为nil时,禁用缓存,或着使用内置的 lattice.NewMemoryBlockCache(10*time.Second, time.Minute, time.Minute) - accountLock AccountLock: 账户锁接口,通过账户锁支持账户高并发发交易,为nil时,默认使用 lattice.NewAccountLock() - options *Options: Returns: - Lattice.
NewMemoryBlockCache 初始化一个内存缓存 Parameters: - enable bool: 是否启用缓存 - httpApi client.HttpApi - daemonHashExpirationDuration time.Duration: 守护区块哈希的过期时长 - lifeDuration time.Duration: 缓存的存活时长 - cleanInterval time.Duration: 过期缓存的清理间隔时长 Returns: - BlockCache.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ChainConfig 链配置.
ConnectingNodeConfig 节点配置.
Credentials 凭证配置.
No description provided by the author
RetryStrategy 等待回执策略.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author