config

package
v0.0.0-...-872243e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: GPL-3.0, LGPL-3.0 Imports: 9 Imported by: 0

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 Init

func Init()

func LoadApiGateways

func LoadApiGateways() error

func PathExists

func PathExists(path string) (bool, error)

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 EosConfig

type EosConfig struct {
	Nodeos         string
	ChainID        string
	BalanceTracker string
}

type RpcClientConfig

type RpcClientConfig struct {
	ElectrsAddress string
	Host           string
	Port           int
	User           string
	Passwd         string
	Usessl         bool
}

type SimpleApiConfig

type SimpleApiConfig struct {
	ApiAddress string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL