Documentation ¶
Overview ¶
提供api的节点地址
Index ¶
Constants ¶
View Source
const RPCCLIENT_TIMEOUT = 30
Variables ¶
View Source
var Loaded bool = false
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
func LoadApiGateways ¶
func LoadApiGateways() error
func PathExists ¶
func PrintLogToFile ¶
func PrintLogToFile()
func SetDatadir ¶
func SetDatadir(data string)
Types ¶
type ApiGatewayConfigs ¶
type ApiGatewayConfigs struct { RPCCLIENT_TIMEOUT int CosmosGateway *SimpleApiConfig TronGateway *SimpleApiConfig BitcoinGateway *RpcClientConfig OmniGateway *RpcClientConfig BitcoincashGateway *RpcClientConfig EthereumGateway *SimpleApiConfig EosGateway *EosConfig EvtGateway *SimpleApiConfig RippleGateway *SimpleApiConfig }
var ApiGateways *ApiGatewayConfigs
type RpcClientConfig ¶
type SimpleApiConfig ¶
type SimpleApiConfig struct {
ApiAddress string
}
Click to show internal directories.
Click to hide internal directories.