Documentation ¶
Index ¶
- Constants
- func GetDefaultMainClient() types.ChainClient
- func NewMainChainClient(cfg *types.ChainConfig, grpcaddr string) (types.ChainClient, error)
- func NewMultipleURL(url string) string
- func NewSyncURL(url string) string
- func SetAddrInfo(addr resolver.Address, addrInfo AddrInfo) resolver.Address
- type AddrInfo
Constants ¶
View Source
const ( UNKNOWN = 0 NOTSYNC = 1 SYNC = 2 )
节点同步状态
View Source
const SyncLbName = "sync"
SyncLbName is the name of sync balancer.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultMainClient ¶
func GetDefaultMainClient() types.ChainClient
GetDefaultMainClient get default client
func NewMainChainClient ¶
func NewMainChainClient(cfg *types.ChainConfig, grpcaddr string) (types.ChainClient, error)
NewMainChainClient 创建一个平行链的 主链 grpc chain 客户端
Types ¶
Click to show internal directories.
Click to hide internal directories.