package
Version:
v0.0.0-...-a26e058
Opens a new window with list of versions in this module.
Published: Feb 9, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Database *Database `yaml:"database"`
Fullnode Fullnode `yaml:"fullnode"`
NetWork string `yaml:"network"`
Server *Server `yaml:"server"`
RpcServer *RpcServer `yaml:"rpcserver"`
Chains []string `yaml:"chains"`
AesKey string `yaml:"aes_key"`
}
type Database struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Database string `yaml:"database"`
}
type Eth struct {
RPCURL string `yaml:"rpc_url"`
RPCUser string `yaml:"rpc_user"`
RPCPass string `yaml:"rpc_pass"`
KeyLockerAddr string `yaml:"key_locker_addr"`
WalletAddr string `yaml:"wallet_addr"`
WalletPriv string `yaml:"wallet_priv"`
TimeOut int64 `yaml:"time_out"`
Confirmations int64 `yaml:"confirmations"`
}
type Fullnode struct {
Eth *Eth `yaml:"eth"`
Ipfs *Ipfs `yaml:"ipfs"`
}
Fullnode define
type Ipfs struct {
NetworkNode []string `yaml:"network_node"`
RepoPath string `yaml:"repo_path"`
}
type RPC struct {
RPCURL string `yaml:"rpc_url"`
RPCUser string `yaml:"rpc_user"`
RPCPass string `yaml:"rpc_pass"`
}
type RpcServer struct {
Port string `yaml:"port"`
}
type Server struct {
Port int `yaml:"port"`
Debug bool `yaml:"debug"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.