Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Service `yaml:"server"` Monero `yaml:"monero"` Ethereum `yaml:"ethereum"` Database `yaml:"database"` Logger `yaml:"logger"` }
Config object wrapper
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns an example default configuration suitable for use with the test environment
func (*Config) EthAuth ¶
func (c *Config) EthAuth() (*bind.TransactOpts, error)
EthAuth returns a transactopts suitable for signing transactions
type Database ¶
type Database struct {
Path string `yaml:"path"`
}
Database configures a connection to our database only supports sqlite3 for now
type Ethereum ¶
type Ethereum struct { RPCAddr string `yaml:"rpc_addr"` // as generated by geth account new KeyData string `yaml:"key_data"` KeyPassword string `yaml:"key_password"` ReserveContractAddress string `yaml:"reserve_contract_address"` }
Ethereum configures our connection to the ethereum blockchain
type Logger ¶
type Logger struct { DevMode bool `yaml:"dev_mode"` DebugMode bool `yaml:"debug_mode"` FilePath string `yaml:"file_path"` }
Logger configures the zap logger
Click to show internal directories.
Click to hide internal directories.